ACPI: thinkpad-acpi: add sysfs support to the thermal subdriver
commit6293e8b3da70c1ea6bf5e4937e791c1a75cd0b63
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, 5 Aug 2007 14:44:43 +0000 (5 11:44 -0300)
tree8f144d4ad242698a224db25286cbddd865d02e95
parent2037351cfddc4794fa5c839790705693416e8a1a
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