summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds.h
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2015-09-28 14:38:04 +0200
committerJacek Anaszewski <j.anaszewski@samsung.com>2015-11-03 08:59:22 +0100
commit757b06ae04b3b6c8958ab067e879a8865d076d2a (patch)
treec210be20cf1c644e2c156acf216f2734526c8cfa /drivers/leds/leds.h
parentLED/MIPS: Move SEAD3 LED driver to where it belongs. (diff)
downloadlinux-757b06ae04b3b6c8958ab067e879a8865d076d2a.tar.xz
linux-757b06ae04b3b6c8958ab067e879a8865d076d2a.zip
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h
index bc89d7ace2c4..4238fbc31d35 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;