Skip to contentSkip to conversation

PM: cleanup comments

PATCH Applied [email protected] 4 participants 4 messages Feb 11, 2022 – Mar 1, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM: cleanup comments

From: Tom Rix <[email protected]>

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

---
 drivers/base/power/wakeirq.c | 2 +-
 drivers/base/power/wakeup.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/base/power/wakeirq.c +1 -1
index 0004db4a9d3b..d487a6bac630 100644
@@ -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.
  *
drivers/base/power/wakeup.c +2 -2
index 8666590201c9..a57d469676ca 100644
@@ -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);
Signature · 1 line
2.26.3
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On 2/11/22 08:10, [email protected] wrote:

From: Tom Rix <[email protected]>

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

Thanks.

Quoted 40 lines
---
 drivers/base/power/wakeirq.c | 2 +-
 drivers/base/power/wakeup.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/base/power/wakeirq.c +1 -1
index 0004db4a9d3b..d487a6bac630 100644
@@ -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.
  *
drivers/base/power/wakeup.c +2 -2
index 8666590201c9..a57d469676ca 100644
@@ -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);
Signature · 1 line
~Randy