ACPI: thinkpad-acpi: clean-up fan subdriver quirk
commite3c9f2f6fce725d222b70abb07356714c8c1c9ad
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 22 Nov 2008 21:23:04 +0000 (22 19:23 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 22 Nov 2008 21:23:04 +0000 (22 19:23 -0200)
treee9dde18ed713961e511e1183cbf0d8159a15f7e2
parent89a900580487708d95f8abd222d1fdb224c88cbd
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