diff options
author | Jacek Anaszewski <j.anaszewski@samsung.com> | 2015-09-28 14:38:04 +0200 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2015-11-03 08:59:22 +0100 |
commit | 757b06ae04b3b6c8958ab067e879a8865d076d2a (patch) | |
tree | c210be20cf1c644e2c156acf216f2734526c8cfa /drivers/leds/leds.h | |
parent | 22a16873d38829570677871a22cf77f00445206f (diff) | |
download | op-kernel-dev-757b06ae04b3b6c8958ab067e879a8865d076d2a.zip op-kernel-dev-757b06ae04b3b6c8958ab067e879a8865d076d2a.tar.gz |
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>
Diffstat (limited to 'drivers/leds/leds.h')
-rw-r--r-- | drivers/leds/leds.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h index bc89d7a..4238fbc 100644 --- a/drivers/leds/leds.h +++ b/drivers/leds/leds.h @@ -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; |