diff options
author | Fabio Baltieri <fabio.baltieri@gmail.com> | 2012-08-15 17:44:34 +0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@canonical.com> | 2012-09-11 14:32:40 +0400 |
commit | d23a22a74fded23a12434c9463fe66cec2b0afcd (patch) | |
tree | 65b61353a251d780a7b5f854d1b56cb8d8ca4764 /drivers/leds/leds.h | |
parent | 490dcee9b433302da4ec5325c3e69a0be1201473 (diff) |
leds: delay led_set_brightness if stopping soft-blink
Delay execution of led_set_brightness() if need to stop soft-blink
timer.
This allows led_set_brightness to be called in hard-irq context even if
soft-blink was activated on that LED.
Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds/leds.h')
-rw-r--r-- | drivers/leds/leds.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h index d02acd496126..4c50365344a9 100644 --- a/drivers/leds/leds.h +++ b/drivers/leds/leds.h @@ -32,6 +32,8 @@ static inline int led_get_brightness(struct led_classdev *led_cdev) return led_cdev->brightness; } +void led_stop_software_blink(struct led_classdev *led_cdev); + extern struct rw_semaphore leds_list_lock; extern struct list_head leds_list; |