]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Sep 2011 01:09:38 +0000 (18:09 -0700)
commit8a4fc7217d7d61032700dd6bfa48225a291af1e2
tree0f59b3271ece4b248b40a515cec440a2411753b3
parent0c7e15a8df2e045a3a74565e623617f36b4ea7d7
drivers/leds/ledtrig-timer.c: fix broken sysfs delay handling

Fix regression introduced by commit 3ce72f9323a4 ("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>
Cc: <stable@kernel.org> [2.6.37+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/ledtrig-timer.c