Skip to content

Commit 3b2714c

Browse files
rddunlapstorulf
authored andcommitted
PM: domains: fix domain_governor kernel-doc warnings
Fix kernel-doc warnings found when using "W=1". domain_governor.c:54: warning: No description found for return value of 'default_suspend_ok' domain_governor.c:266: warning: No description found for return value of '_default_power_down_ok' domain_governor.c:412: warning: cannot understand function prototype: 'struct dev_power_governor pm_domain_always_on_gov = ' Signed-off-by: Randy Dunlap <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 8338113 commit 3b2714c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/base/power/domain_governor.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ static int dev_update_qos_constraint(struct device *dev, void *data)
4949
/**
5050
* default_suspend_ok - Default PM domain governor routine to suspend devices.
5151
* @dev: Device to check.
52+
*
53+
* Returns: true if OK to suspend, false if not OK to suspend
5254
*/
5355
static bool default_suspend_ok(struct device *dev)
5456
{
@@ -261,6 +263,8 @@ static bool __default_power_down_ok(struct dev_pm_domain *pd,
261263
* @now: current ktime.
262264
*
263265
* This routine must be executed under the PM domain's lock.
266+
*
267+
* Returns: true if OK to power down, false if not OK to power down
264268
*/
265269
static bool _default_power_down_ok(struct dev_pm_domain *pd, ktime_t now)
266270
{
@@ -406,8 +410,8 @@ struct dev_power_governor simple_qos_governor = {
406410
.power_down_ok = default_power_down_ok,
407411
};
408412

409-
/**
410-
* pm_genpd_gov_always_on - A governor implementing an always-on policy
413+
/*
414+
* pm_domain_always_on_gov - A governor implementing an always-on policy
411415
*/
412416
struct dev_power_governor pm_domain_always_on_gov = {
413417
.suspend_ok = default_suspend_ok,

0 commit comments

Comments
 (0)