ACPI: thinkpad-acpi: clean-up fan subdriver quirk
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 11 Jan 2009 05:01:08 +0000 (03:01 -0200)
committerLen Brown <len.brown@intel.com>
Thu, 15 Jan 2009 18:47:14 +0000 (13:47 -0500)
commit1c2ece758a36b48133717e4db060fbe8fa52c5cd
treec0ab4d86ba1726eafee6a713d24ee89e572db8ad
parentcb4293589855714b6d5079336019bf2af5fc41f8
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>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/thinkpad_acpi.c