ACPI: thinkpad-acpi: add sysfs support to the thermal subdriver
commit7f36a56c860181e597eb56a51b54678005af398d
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>
Sun, 9 Sep 2007 02:14:57 +0000 (8 23:14 -0300)
treed59f35a54de520a8d6d9d8acec0f7fbda175a48c
parent354b088bbfe0de9110e2faeef1fb420b6abf3d86
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