summaryrefslogtreecommitdiffstats
path: root/include/led.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-04-20 06:59:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-20 07:00:21 +0200
commit9d309e5a19f7088f50d13b2cec5f6f885e63901d (patch)
treecaaf1b2f85e8cbc0cde0697532ea37c7162ac3e1 /include/led.h
parent62adc52ed513e3080e2be6a233de4e06a90d1042 (diff)
downloadbarebox-9d309e5a19f7088f50d13b2cec5f6f885e63901d.tar.gz
barebox-9d309e5a19f7088f50d13b2cec5f6f885e63901d.tar.xz
led: Fix led_gpio_rgb_unregister prototype
Analog to the other led_unregister prototypes this must take the LED type specific struct. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/led.h')
-rw-r--r--include/led.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/led.h b/include/led.h
index f17621e164..ddf8d90084 100644
--- a/include/led.h
+++ b/include/led.h
@@ -110,14 +110,14 @@ static inline void led_gpio_bicolor_unregister(struct gpio_bicolor_led *led)
#ifdef CONFIG_LED_GPIO_RGB
int led_gpio_rgb_register(struct gpio_rgb_led *led);
-void led_gpio_rgb_unregister(struct gpio_led *led);
+void led_gpio_rgb_unregister(struct gpio_rgb_led *led);
#else
static inline int led_gpio_rgb_register(struct gpio_rgb_led *led)
{
return -ENOSYS;
}
-static inline void led_gpio_rgb_unregister(struct gpio_led *led)
+static inline void led_gpio_rgb_unregister(struct gpio_rgb_led *led)
{
}
#endif