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>
This commit is contained in:
Fabio Baltieri 2012-08-15 21:44:34 +08:00 • committed by Bryan Wu
commit d23a22a74f
5 changed files with 37 additions and 4 deletions