Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: leds-gpio-register: Supply description for param 'id'

Fixes the following W=1 kernel build warning(s):

drivers/leds/leds-gpio-register.c:24: warning: Function parameter or member 'id' not described in 'gpio_led_register_device'

Cc: Pavel Machek <pavel@ucw.cz>
Cc: Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
Cc: linux-leds@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>

authored by

Lee Jones and committed by
Pavel Machek
c5a87a4a c10074a1

+1
+1
drivers/leds/leds-gpio-register.c
··· 11 11 /** 12 12 * gpio_led_register_device - register a gpio-led device 13 13 * @pdata: the platform data used for the new device 14 + * @id: platform ID 14 15 * 15 16 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device 16 17 * with the result. This allows to have pdata and pdata-leds in .init.rodata