ACPI: thinkpad-acpi: clean-up fan subdriver quirk
commitf02f49d647c71e6fa514d652d8b0b99e4915f811
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 13 May 2011 12:21:49 +0000 (13 09:21 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 13 May 2011 12:21:49 +0000 (13 09:21 -0300)
treebcfe874eeb81f17753c4a9136f017e67e4383f7b
parenteec2e0d7a800bd51cd27cd6f402d8e7aa46f2df8
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/platform/x86/thinkpad_acpi.c