• Henrique de Moraes Holschuh's avatar
    ACPI: thinkpad-acpi: add sysfs support to the thermal subdriver · 2c37aa4e
    Henrique de Moraes Holschuh authored
    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: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    2c37aa4e
thinkpad_acpi.h 14.8 KB