Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] PM: cleanup comments
@ 2022-02-11 16:10 trix
  2022-02-11 17:12 ` Randy Dunlap
  2022-02-12 11:29 ` Pavel Machek
  0 siblings, 2 replies; 4+ messages in thread
From: trix @ 2022-02-11 16:10 UTC (permalink / raw)
  To: rafael, len.brown, pavel, gregkh; +Cc: linux-pm, linux-kernel, Tom Rix

From: Tom Rix <trix@redhat.com>

Remove the second 'the'.
Replace the second 'of' with 'the'.
Replace 'couter' with 'counter'.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/base/power/wakeirq.c | 2 +-
 drivers/base/power/wakeup.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/base/power/wakeirq.c b/drivers/base/power/wakeirq.c
index 0004db4a9d3b..d487a6bac630 100644
--- a/drivers/base/power/wakeirq.c
+++ b/drivers/base/power/wakeirq.c
@@ -289,7 +289,7 @@ EXPORT_SYMBOL_GPL(dev_pm_disable_wake_irq);
  *
  * Enables wakeirq conditionally. We need to enable wake-up interrupt
  * lazily on the first rpm_suspend(). This is needed as the consumer device
- * starts in RPM_SUSPENDED state, and the the first pm_runtime_get() would
+ * starts in RPM_SUSPENDED state, and the first pm_runtime_get() would
  * otherwise try to disable already disabled wakeirq. The wake-up interrupt
  * starts disabled with IRQ_NOAUTOEN set.
  *
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
index 8666590201c9..a57d469676ca 100644
--- a/drivers/base/power/wakeup.c
+++ b/drivers/base/power/wakeup.c
@@ -587,7 +587,7 @@ static bool wakeup_source_not_registered(struct wakeup_source *ws)
  * @ws: Wakeup source to handle.
  *
  * Update the @ws' statistics and, if @ws has just been activated, notify the PM
- * core of the event by incrementing the counter of of wakeup events being
+ * core of the event by incrementing the counter of the wakeup events being
  * processed.
  */
 static void wakeup_source_activate(struct wakeup_source *ws)
@@ -733,7 +733,7 @@ static void wakeup_source_deactivate(struct wakeup_source *ws)
 
 	/*
 	 * Increment the counter of registered wakeup events and decrement the
-	 * couter of wakeup events in progress simultaneously.
+	 * counter of wakeup events in progress simultaneously.
 	 */
 	cec = atomic_add_return(MAX_IN_PROGRESS, &combined_event_count);
 	trace_wakeup_source_deactivate(ws->name, cec);
-- 
2.26.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] PM: cleanup comments
  2022-02-11 16:10 [PATCH] PM: cleanup comments trix
@ 2022-02-11 17:12 ` Randy Dunlap
  2022-02-12 11:29 ` Pavel Machek
  1 sibling, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2022-02-11 17:12 UTC (permalink / raw)
  To: trix, rafael, len.brown, pavel, gregkh; +Cc: linux-pm, linux-kernel



On 2/11/22 08:10, trix@redhat.com wrote:
> From: Tom Rix <trix@redhat.com>
> 
> Remove the second 'the'.
> Replace the second 'of' with 'the'.
> Replace 'couter' with 'counter'.
> 
> Signed-off-by: Tom Rix <trix@redhat.com>

Acked-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.

> ---
>  drivers/base/power/wakeirq.c | 2 +-
>  drivers/base/power/wakeup.c  | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/base/power/wakeirq.c b/drivers/base/power/wakeirq.c
> index 0004db4a9d3b..d487a6bac630 100644
> --- a/drivers/base/power/wakeirq.c
> +++ b/drivers/base/power/wakeirq.c
> @@ -289,7 +289,7 @@ EXPORT_SYMBOL_GPL(dev_pm_disable_wake_irq);
>   *
>   * Enables wakeirq conditionally. We need to enable wake-up interrupt
>   * lazily on the first rpm_suspend(). This is needed as the consumer device
> - * starts in RPM_SUSPENDED state, and the the first pm_runtime_get() would
> + * starts in RPM_SUSPENDED state, and the first pm_runtime_get() would
>   * otherwise try to disable already disabled wakeirq. The wake-up interrupt
>   * starts disabled with IRQ_NOAUTOEN set.
>   *
> diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
> index 8666590201c9..a57d469676ca 100644
> --- a/drivers/base/power/wakeup.c
> +++ b/drivers/base/power/wakeup.c
> @@ -587,7 +587,7 @@ static bool wakeup_source_not_registered(struct wakeup_source *ws)
>   * @ws: Wakeup source to handle.
>   *
>   * Update the @ws' statistics and, if @ws has just been activated, notify the PM
> - * core of the event by incrementing the counter of of wakeup events being
> + * core of the event by incrementing the counter of the wakeup events being
>   * processed.
>   */
>  static void wakeup_source_activate(struct wakeup_source *ws)
> @@ -733,7 +733,7 @@ static void wakeup_source_deactivate(struct wakeup_source *ws)
>  
>  	/*
>  	 * Increment the counter of registered wakeup events and decrement the
> -	 * couter of wakeup events in progress simultaneously.
> +	 * counter of wakeup events in progress simultaneously.
>  	 */
>  	cec = atomic_add_return(MAX_IN_PROGRESS, &combined_event_count);
>  	trace_wakeup_source_deactivate(ws->name, cec);

-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] PM: cleanup comments
  2022-02-11 16:10 [PATCH] PM: cleanup comments trix
  2022-02-11 17:12 ` Randy Dunlap
@ 2022-02-12 11:29 ` Pavel Machek
  2022-03-01 15:18   ` Rafael J. Wysocki
  1 sibling, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2022-02-12 11:29 UTC (permalink / raw)
  To: trix; +Cc: rafael, len.brown, gregkh, linux-pm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

On Fri 2022-02-11 08:10:27, trix@redhat.com wrote:
> From: Tom Rix <trix@redhat.com>
> 
> Remove the second 'the'.
> Replace the second 'of' with 'the'.
> Replace 'couter' with 'counter'.
> 
> Signed-off-by: Tom Rix <trix@redhat.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

								Pavel
-- 
http://www.livejournal.com/~pavelmachek

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] PM: cleanup comments
  2022-02-12 11:29 ` Pavel Machek
@ 2022-03-01 15:18   ` Rafael J. Wysocki
  0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2022-03-01 15:18 UTC (permalink / raw)
  To: Pavel Machek, Tom Rix
  Cc: Rafael J. Wysocki, Len Brown, Greg Kroah-Hartman, Linux PM,
	Linux Kernel Mailing List

On Sat, Feb 12, 2022 at 12:29 PM Pavel Machek <pavel@ucw.cz> wrote:
>
> On Fri 2022-02-11 08:10:27, trix@redhat.com wrote:
> > From: Tom Rix <trix@redhat.com>
> >
> > Remove the second 'the'.
> > Replace the second 'of' with 'the'.
> > Replace 'couter' with 'counter'.
> >
> > Signed-off-by: Tom Rix <trix@redhat.com>
>
> Acked-by: Pavel Machek <pavel@ucw.cz>

Applied as 5.18 material, thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-01 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11 16:10 [PATCH] PM: cleanup comments trix
2022-02-11 17:12 ` Randy Dunlap
2022-02-12 11:29 ` Pavel Machek
2022-03-01 15:18   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox