9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2015-04-20 06:59:30 +02:00
parent 62adc52ed5
commit 9d309e5a19
2 changed files with 3 additions and 3 deletions

View File

@ -192,7 +192,7 @@ err_gpio_r:
* led_gpio_rgb_unregister - remove a gpio controlled rgb LED from the framework
* @param led The gpio LED
*/
void led_gpio_rgb_unregister(struct gpio_led *led)
void led_gpio_rgb_unregister(struct gpio_rgb_led *led)
{
led_unregister(&led->led);
}

View File

@ -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