diff options
author | Aaron Lu <aaron.lu@intel.com> | 2014-09-03 09:13:02 +0200 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-10-10 08:02:25 +0200 |
commit | 77e337c6e23e3b9d22e09ffec202a80f755a54c2 (patch) | |
tree | 91a497474e1f8e94812221102bfa75a573add3db /include | |
parent | Thermal: move the KELVIN_TO_MILLICELSIUS macro to thermal.h (diff) | |
download | linux-77e337c6e23e3b9d22e09ffec202a80f755a54c2.tar.xz linux-77e337c6e23e3b9d22e09ffec202a80f755a54c2.zip |
Thermal: introduce INT3402 thermal driver
ACPI INT3402 device object could report temperature for the memory module.
To expose such information to user space, a thermal zone device is registered
for it so that the thermal sysfs interface can expose such information for
userspace to use.
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/thermal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 79ce6b94884a..ef90838b36a0 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -46,6 +46,8 @@ #define CELSIUS_TO_KELVIN(t) ((t)*10+2732) #define DECI_KELVIN_TO_MILLICELSIUS_WITH_OFFSET(t, off) (((t) - (off)) * 100) #define DECI_KELVIN_TO_MILLICELSIUS(t) DECI_KELVIN_TO_MILLICELSIUS_WITH_OFFSET(t, 2732) +#define MILLICELSIUS_TO_DECI_KELVIN_WITH_OFFSET(t, off) (((t) / 100) + (off)) +#define MILLICELSIUS_TO_DECI_KELVIN(t) MILLICELSIUS_TO_DECI_KELVIN_WITH_OFFSET(t, 2732) /* Adding event notification support elements */ #define THERMAL_GENL_FAMILY_NAME "thermal_event" |