mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
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 <rdunlap@infradead.org> Cc: "Rafael J. Wysocki" <rafael@kernel.org> Link: https://lore.kernel.org/r/20231205225856.32739-1-rdunlap@infradead.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
833811353f
commit
3b2714c5d2
@ -49,6 +49,8 @@ static int dev_update_qos_constraint(struct device *dev, void *data)
|
|||||||
/**
|
/**
|
||||||
* default_suspend_ok - Default PM domain governor routine to suspend devices.
|
* default_suspend_ok - Default PM domain governor routine to suspend devices.
|
||||||
* @dev: Device to check.
|
* @dev: Device to check.
|
||||||
|
*
|
||||||
|
* Returns: true if OK to suspend, false if not OK to suspend
|
||||||
*/
|
*/
|
||||||
static bool default_suspend_ok(struct device *dev)
|
static bool default_suspend_ok(struct device *dev)
|
||||||
{
|
{
|
||||||
@ -261,6 +263,8 @@ static bool __default_power_down_ok(struct dev_pm_domain *pd,
|
|||||||
* @now: current ktime.
|
* @now: current ktime.
|
||||||
*
|
*
|
||||||
* This routine must be executed under the PM domain's lock.
|
* This routine must be executed under the PM domain's lock.
|
||||||
|
*
|
||||||
|
* Returns: true if OK to power down, false if not OK to power down
|
||||||
*/
|
*/
|
||||||
static bool _default_power_down_ok(struct dev_pm_domain *pd, ktime_t now)
|
static bool _default_power_down_ok(struct dev_pm_domain *pd, ktime_t now)
|
||||||
{
|
{
|
||||||
@ -406,8 +410,8 @@ struct dev_power_governor simple_qos_governor = {
|
|||||||
.power_down_ok = default_power_down_ok,
|
.power_down_ok = default_power_down_ok,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* pm_genpd_gov_always_on - A governor implementing an always-on policy
|
* pm_domain_always_on_gov - A governor implementing an always-on policy
|
||||||
*/
|
*/
|
||||||
struct dev_power_governor pm_domain_always_on_gov = {
|
struct dev_power_governor pm_domain_always_on_gov = {
|
||||||
.suspend_ok = default_suspend_ok,
|
.suspend_ok = default_suspend_ok,
|
||||||
|
Loading…
Reference in New Issue
Block a user