All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] opp: Fix some kernel-doc comments
@ 2022-05-26 13:20 Yang Li
  2022-05-27  2:37 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2022-05-26 13:20 UTC (permalink / raw)
  To: vireshk; +Cc: nm, sboyd, linux-pm, linux-kernel, Yang Li, Abaci Robot

Make @freq to @bw in dev_pm_opp_find_bw_ceil() and
dev_pm_opp_find_bw_floor() kernel-doc comment to
remove warnings found by running scripts/kernel-doc,
which is caused by using 'make W=1'.

drivers/opp/core.c:753: warning: Function parameter or member 'bw' not
described in 'dev_pm_opp_find_bw_ceil'
drivers/opp/core.c:753: warning: Excess function parameter 'freq'
description in 'dev_pm_opp_find_bw_ceil'
drivers/opp/core.c:812: warning: Function parameter or member 'bw' not
described in 'dev_pm_opp_find_bw_floor'
drivers/opp/core.c:812: warning: Excess function parameter 'freq'
description in 'dev_pm_opp_find_bw_floor'

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/opp/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 84063eaebb91..e44b73af2824 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -732,7 +732,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_find_level_ceil);
 /**
  * dev_pm_opp_find_bw_ceil() - Search for a rounded ceil bandwidth
  * @dev:	device for which we do this operation
- * @freq:	start bandwidth
+ * @bw:	start bandwidth
  * @index:	which bandwidth to compare, in case of OPPs with several values
  *
  * Search for the matching floor *available* OPP from a starting bandwidth
@@ -791,7 +791,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_find_bw_ceil);
 /**
  * dev_pm_opp_find_bw_floor() - Search for a rounded floor bandwidth
  * @dev:	device for which we do this operation
- * @freq:	start bandwidth
+ * @bw:	start bandwidth
  * @index:	which bandwidth to compare, in case of OPPs with several values
  *
  * Search for the matching floor *available* OPP from a starting bandwidth
-- 
2.20.1.7.g153144c


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

* Re: [PATCH -next] opp: Fix some kernel-doc comments
  2022-05-26 13:20 [PATCH -next] opp: Fix some kernel-doc comments Yang Li
@ 2022-05-27  2:37 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2022-05-27  2:37 UTC (permalink / raw)
  To: Yang Li; +Cc: vireshk, nm, sboyd, linux-pm, linux-kernel, Abaci Robot

On 26-05-22, 21:20, Yang Li wrote:
> Make @freq to @bw in dev_pm_opp_find_bw_ceil() and
> dev_pm_opp_find_bw_floor() kernel-doc comment to
> remove warnings found by running scripts/kernel-doc,
> which is caused by using 'make W=1'.
> 
> drivers/opp/core.c:753: warning: Function parameter or member 'bw' not
> described in 'dev_pm_opp_find_bw_ceil'
> drivers/opp/core.c:753: warning: Excess function parameter 'freq'
> description in 'dev_pm_opp_find_bw_ceil'
> drivers/opp/core.c:812: warning: Function parameter or member 'bw' not
> described in 'dev_pm_opp_find_bw_floor'
> drivers/opp/core.c:812: warning: Excess function parameter 'freq'
> description in 'dev_pm_opp_find_bw_floor'
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  drivers/opp/core.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied. Thanks.

-- 
viresh

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

end of thread, other threads:[~2022-05-27  2:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 13:20 [PATCH -next] opp: Fix some kernel-doc comments Yang Li
2022-05-27  2:37 ` Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.