ACPI: thinkpad-acpi: clean-up fan subdriver quirk
commitdd69f4e9398c20f51e3862e967e8f4e5e693ee50
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 22:28:10 +0000 (11 20:28 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 22:28:10 +0000 (11 20:28 -0200)
tree332c768306b380469a9b8f35ddac31cfe8c9cc1b
parent4a07e914338df829c996fd1d9eae2c9daa227dfb
ACPI: thinkpad-acpi: clean-up fan subdriver quirk

Better document the Unitialized HFSP quirk, and modularize it a bit.
This makes the code flow easier to read and reduces LOC.

Apply the Unitialized HFSP closer to the source (i.e. inside the
get_fan_status()), this fixes a harmless buglet where at driver init
with the quirk active, the user could set the hwmon pwm1 attribute and
switch out of pwm1_mode=2 to pwm1_mode=0 without changing pwm1_mode
directly.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Tino Keitel <tino.keitel@tikei.de>
drivers/misc/thinkpad_acpi.c