linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] leds: class: fix W=1 warnings in led-class.c
@ 2021-05-17  4:48 Yang Yingliang
  2021-06-23 20:18 ` Pavel Machek
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2021-05-17  4:48 UTC (permalink / raw)
  To: linux-kernel, linux-leds; +Cc: pavel

Fix the following make W=1 kernel build warnings:

  drivers/leds/led-class.c:521: warning: Function parameter or member 'dev' not described in 'devm_led_classdev_unregister'
  drivers/leds/led-class.c:521: warning: Excess function parameter 'parent' description in 'devm_led_classdev_unregister'

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/leds/led-class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
index 2e495ff67856..16271a1de12a 100644
--- a/drivers/leds/led-class.c
+++ b/drivers/leds/led-class.c
@@ -513,7 +513,7 @@ static int devm_led_classdev_match(struct device *dev, void *res, void *data)
 
 /**
  * devm_led_classdev_unregister() - resource managed led_classdev_unregister()
- * @parent: The device to unregister.
+ * @dev: The device to unregister.
  * @led_cdev: the led_classdev structure for this device.
  */
 void devm_led_classdev_unregister(struct device *dev,
-- 
2.25.1


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

* Re: [PATCH -next] leds: class: fix W=1 warnings in led-class.c
  2021-05-17  4:48 [PATCH -next] leds: class: fix W=1 warnings in led-class.c Yang Yingliang
@ 2021-06-23 20:18 ` Pavel Machek
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2021-06-23 20:18 UTC (permalink / raw)
  To: Yang Yingliang; +Cc: linux-kernel, linux-leds

[-- Attachment #1: Type: text/plain, Size: 532 bytes --]

Hi!

> Fix the following make W=1 kernel build warnings:
> 
>   drivers/leds/led-class.c:521: warning: Function parameter or member 'dev' not described in 'devm_led_classdev_unregister'
>   drivers/leds/led-class.c:521: warning: Excess function parameter 'parent' description in 'devm_led_classdev_unregister'
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>

I tried to apply it on current -next, but was fixed already. Best
regards,

								Pavel
								
-- 
http://www.livejournal.com/~pavelmachek

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

end of thread, other threads:[~2021-06-23 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17  4:48 [PATCH -next] leds: class: fix W=1 warnings in led-class.c Yang Yingliang
2021-06-23 20:18 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).