ACPI: thinkpad-acpi: add sysfs support to fan subdriver
commit2c38152e3bee962ad10a983441783bb958cb318a
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Mon, 16 Apr 2007 01:25:29 +0000 (15 22:25 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 28 Apr 2007 17:28:13 +0000 (28 14:28 -0300)
tree31af1c96a22d0625bb14950492c8c8bea58fbf9f
parentb2f6fe0026b0f4b5f269fb41f7367e8dcf0d3b54
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