diff options
author | Wei Ni <wni@nvidia.com> | 2016-03-29 13:29:17 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2016-05-17 17:28:28 +0300 |
commit | c35095215a80b13af2f521e1ab1c727a5224e53b (patch) | |
tree | 65b5f909335917a5c763b2557b15cbdbb8d0330a /include/linux/thermal.h | |
parent | d753b22d8b2d500377bc85c4909cc0d6f199d1c8 (diff) | |
download | linux-c35095215a80b13af2f521e1ab1c727a5224e53b.tar.xz |
thermal: of-thermal: allow setting trip_temp on hardware
In current of-thermal, the .set_trip_temp only support to
set trip_temp for SW. But some sensors support to set
trip_temp on hardware, so that can trigger interrupt,
shutdown or any other events.
This patch adds .set_trip_temp() callback in
thermal_zone_of_device_ops{}, so that the sensor device can
use it to set trip_temp on hardware.
Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r-- | include/linux/thermal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 1b8a5a7876ce..e45abe7db9a6 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -340,6 +340,7 @@ struct thermal_zone_of_device_ops { int (*get_temp)(void *, int *); int (*get_trend)(void *, long *); int (*set_emul_temp)(void *, int); + int (*set_trip_temp)(void *, int, int); }; /** |