aboutsummaryrefslogtreecommitdiffstats
path: root/lib/spinlock_debug.c
diff options
context:
space:
mode:
authorAntonio Ospite <[email protected]>2011-11-01 00:12:19 +0000
committerLinus Torvalds <[email protected]>2011-11-01 00:30:55 +0000
commit6123b0e274503a0d3588e84fbe07c9aa01bfaf5d (patch)
treec4e47bb84136b2586c17be1a541f49898d2c9fcc /lib/spinlock_debug.c
parentdrivers/leds/leds-gpio.c: use gpio_get_value_cansleep() when initializing (diff)
downloadkernel-6123b0e274503a0d3588e84fbe07c9aa01bfaf5d.tar.gz
kernel-6123b0e274503a0d3588e84fbe07c9aa01bfaf5d.zip
leds: save the delay values after a successful call to blink_set()
When calling the hardware blinking function implemented by blink_set(), the delay_on and delay_off values are not preserved across calls. Fix that and make the "timer" trigger work as expected when hardware blinking is available. BEFORE the fix: $ cd /sys/class/leds/someled $ echo timer > trigger $ cat delay_on delay_off 0 0 $ echo 100 > delay_on $ cat delay_on delay_off 0 0 $ echo 100 > delay_off $ cat delay_on delay_off 0 0 AFTER the fix: $ cd /sys/class/leds/someled $ echo timer > trigger $ cat delay_on delay_off 0 0 $ echo 100 > delay_on $ cat delay_on delay_off 100 0 $ echo 100 > delay_off $ cat delay_on delay_off 100 100 Signed-off-by: Antonio Ospite <[email protected]> Reviewed-by: Johannes Berg <[email protected]> Cc: Richard Purdie <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions