thermal: of-thermal: allow setting trip_temp on hardware
authorWei Ni <wni@nvidia.com>
Tue, 29 Mar 2016 10:29:17 +0000 (18:29 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 17 May 2016 14:28:28 +0000 (07:28 -0700)
commitc35095215a80b13af2f521e1ab1c727a5224e53b
tree65b5f909335917a5c763b2557b15cbdbb8d0330a
parentd753b22d8b2d500377bc85c4909cc0d6f199d1c8
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>
drivers/thermal/of-thermal.c
include/linux/thermal.h
This page took 0.029104 seconds and 5 git commands to generate.