Skip to contentSkip to conversation

leds: class: fix W=1 warnings in led-class.c

PATCH In review Yang Yingliang 2 participants 2 messages May 17, 2021 – Jun 23, 2021 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: class: fix W=1 warnings in led-class.c

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'

---
 drivers/leds/led-class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/led-class.c +1 -1
index 2e495ff67856..16271a1de12a 100644
@@ -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,
Signature · 1 line
2.25.1
#1 lore raw

Hi!

Quoted 6 lines

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'

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

Pavel

Signature · 1 line
http://www.livejournal.com/~pavelmachek