Skip to contentSkip to conversation

PM: runtime: Fix pm_runtime_active() kerneldoc comment

PATCH In review Rafael J. Wysocki 2 participants 2 messages Dec 3, 2021 – Dec 6, 2021 Power management core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM: runtime: Fix pm_runtime_active() kerneldoc comment

From: Rafael J. Wysocki <[email protected]>

The kerneldoc comment of pm_runtime_active() does not reflect the behavior of the function, so update it accordingly.

---
 include/linux/pm_runtime.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/pm_runtime.h +1 -1
Index: linux-pm/include/linux/pm_runtime.h
===================================================================
@@ -129,7 +129,7 @@ static inline bool pm_runtime_suspended(
  * pm_runtime_active - Check whether or not a device is runtime-active.
  * @dev: Target device.
  *
- * Return %true if runtime PM is enabled for @dev and its runtime PM status is
+ * Return %true if runtime PM is disabled for @dev or its runtime PM status is
  * %RPM_ACTIVE, or %false otherwise.
  *
  * Note that the return value of this function can only be trusted if it is
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

The kerneldoc comment of pm_runtime_active() does not reflect the behavior of the function, so update it accordingly.

Kind regards
Uffe

Quoted 20 lines
---
 include/linux/pm_runtime.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-pm/include/linux/pm_runtime.h
===================================================================

include/linux/pm_runtime.h +1 -1
@@ -129,7 +129,7 @@ static inline bool pm_runtime_suspended(
  * pm_runtime_active - Check whether or not a device is runtime-active.
  * @dev: Target device.
  *
- * Return %true if runtime PM is enabled for @dev and its runtime PM status is
+ * Return %true if runtime PM is disabled for @dev or its runtime PM status is
  * %RPM_ACTIVE, or %false otherwise.
  *
  * Note that the return value of this function can only be trusted if it is