ACPI: thinkpad-acpi: add sysfs support to the thermal subdriver
commite8a32e5cb78db0e920fe43013f4819c784c0ac81
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 15 Apr 2007 23:06:11 +0000 (15 20:06 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 23 Sep 2007 12:30:37 +0000 (23 09:30 -0300)
tree30fa8ce6622a0fc94c8f83e28a6d0b124d8bdcea
parentca2fb9748a045f407816879ac5860945327fb8fd
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