leds: core: Move LED core callbacks out of led-class.c
Since the API for controlling LED brightness and blinking is defined in the LED core, move the related timer and work callbacks to the led-core.c, and initialize them through a new led_core_init API. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Acked-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
@@ -44,6 +44,7 @@ static inline int led_get_brightness(struct led_classdev *led_cdev)
|
||||
return led_cdev->brightness;
|
||||
}
|
||||
|
||||
void led_init_core(struct led_classdev *led_cdev);
|
||||
void led_stop_software_blink(struct led_classdev *led_cdev);
|
||||
|
||||
extern struct rw_semaphore leds_list_lock;
|
||||
|
Reference in New Issue
Block a user