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:
parent
62adc52ed5
commit
9d309e5a19
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue