thinkpad-acpi: fix LED blinking through timer trigger
commit2c96e61ce5e16b17cab3f255209413ca4a9043e3
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 14 Apr 2009 02:44:11 +0000 (14 02:44 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:25:04 +0000 (2 10:25 -0700)
tree4e0d61c7f750a482601faa572dd3c9bff1a98ace
parent7b91b355a659bba2075a6ce44e7cc79a45d31132
thinkpad-acpi: fix LED blinking through timer trigger

commit 75bd3bf2ade9d548be0d2bde60b5ee0fdce0b127 upstream.

The set_blink hook code in the LED subdriver would never manage to get
a LED to blink, and instead it would just turn it on.  The consequence
of this is that the "timer" trigger would not cause the LED to blink
if given default parameters.

This problem exists since 2.6.26-rc1.

To fix it, switch the deferred LED work handling to use the
thinkpad-acpi-specific LED status (off/on/blink) directly.

This also makes the code easier to read, and to extend later.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: stable@kernel.org
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/thinkpad_acpi.c