ACPI: thinkpad-acpi: clean-up fan subdriver quirk
commit90db68f452abf1d7a43f36bace70e80ed94d4240
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 26 Dec 2008 14:07:15 +0000 (26 12:07 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 26 Dec 2008 14:07:15 +0000 (26 12:07 -0200)
treebe7579a090c97c90e2b27cc6a810d6f39bd423d2
parentbe930c1c77b11384eb45dcb39d4a519cfc35d8c1
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