leds: class: fix W=1 warnings in led-class.c
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'
Signed-off-by Yang Yingliang <[email protected]>
--- drivers/leds/led-class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/led-class.c +1 -1
@@ -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
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'Signed-off-by Yang Yingliang <[email protected]>
I tried to apply it on current -next, but was fixed already. Best regards,
Pavel
Signature · 1 line
http://www.livejournal.com/~pavelmachek