ACPI: thinkpad-acpi: add sysfs support to fan subdriver
commitc57c142bfac68b95f7d447a8e1e94b83e02e7d79
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Mon, 16 Apr 2007 04:25:29 +0000 (16 01:25 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 23 Sep 2007 12:30:37 +0000 (23 09:30 -0300)
tree563e7a0453af397373c7d91c1e6a4165cd3bc07e
parente8a32e5cb78db0e920fe43013f4819c784c0ac81
ACPI: thinkpad-acpi: add sysfs support to fan subdriver

Export sysfs attributes to monitor and control the internal thinkpad fan
(some thinkpads have more than one fan, but thinkpad-acpi doesn't support
the second fan yet).  The sysfs interface follows the hwmon design guide
for fan devices.

Also, fix some stray "thermal" files in the fan procfs description that
have been there forever, and officially support "full-speed" as the name
for the PWM-disabled state of the fan controller to keep it in line with
the hwmon interface.  It is much better a name for that mode than the
unobvious "disengaged" anyway.  Change the procfs interface to also accept
full-speed as a fan level, but still report it as disengaged for backwards
compatibility.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Documentation/thinkpad-acpi.txt
drivers/misc/thinkpad_acpi.c
drivers/misc/thinkpad_acpi.h