]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/leds/ledtrig-timer.c: fix broken sysfs delay handling
authorJohan Hovold <jhovold@gmail.com>
Wed, 14 Sep 2011 23:22:16 +0000 (16:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:31 +0000 (11:40 -0700)
commitd9575b0bf2b1c380bde6803739513ccc1f95d1d0
treefb7daac152d75b0c47545cae987930cff8d7f3c2
parentd63c8a029e509ad48ee9290874731789f9008537
drivers/leds/ledtrig-timer.c: fix broken sysfs delay handling

commit 7a5caabd090b8f7d782c40fc1c048d798f2b6fd7 upstream.

Fix regression introduced by commit 5ada28bf7675 ("led-class: always
implement blinking") which broke sysfs delay handling by not storing the
updated value.  Consequently it was only possible to set one of the delays
through the sysfs interface as the other delay was automatically restored
to it's default value.  Reading the parameters always gave the defaults.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Acked-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/leds/ledtrig-timer.c