ACPI: thinkpad-acpi: add sysfs support to the thermal subdriver
commit3c57cfdd4992292599f7077862ab82526a548d97
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 15 Apr 2007 20:06:11 +0000 (15 17:06 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 7 Jul 2007 12:42:31 +0000 (7 09:42 -0300)
treeeb05835ac2d66278f3c5ec8939a70ee0df5e823d
parentcd5c8932c01b6579d77b9bedb324ade0f98f414f
ACPI: thinkpad-acpi: add sysfs support to the thermal subdriver

Export thinkpad thermal sensors to sysfs, following the hwmon
specification for thermal monitoring sensors.

ThinkPad thermal monitoring is done by the EC.  Sensors can show up or
disappear at runtime when they are inside hotswappable hardware, such as
batteries.  Sensors that are not available return -ENXIO when accessed.

Up to 16 thermal sensors are supported on new firmware (but nobody has
reported a ThinkPad with more than 12 sensors so far), and 8 sensors are
supported on older firmware.  Thermal sensor mapping is model-specific.
Precision varies, it is 1 degree Celcius on new ThinkPads, but higher on
some older models.

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