aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/int340x_thermal/int3402_thermal.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2016-08-26 16:21:18 -0700
committerZhang Rui <rui.zhang@intel.com>2016-09-27 14:37:14 +0800
commit9176ae8668a005b5441604bd1b47eeec07c27d94 (patch)
tree562cd1a6eaadfe060f09bc16327d094b42dde405 /drivers/thermal/int340x_thermal/int3402_thermal.c
parentthermal: user_space gov: Add additional information in uevent (diff)
downloadlinux-dev-9176ae8668a005b5441604bd1b47eeec07c27d94.tar.xz
linux-dev-9176ae8668a005b5441604bd1b47eeec07c27d94.zip
thermal: int340x: New Interface to read trip and notify
Separated the code for reading trip points from int340x_thermal_zone_add to a standalone function int340x_thermal_read_trips. This standlone interface to read is exported so that int340x drivers can re-read trips on ACPI notification for trip point change. Also the appropriate notification events are sent by int340x driver based on the acpi event using int340x_thermal_zone_device_update(). Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/int340x_thermal/int3402_thermal.c')
-rw-r--r--drivers/thermal/int340x_thermal/int3402_thermal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/thermal/int340x_thermal/int3402_thermal.c b/drivers/thermal/int340x_thermal/int3402_thermal.c
index 69df3d960303..8e90b3151a42 100644
--- a/drivers/thermal/int340x_thermal/int3402_thermal.c
+++ b/drivers/thermal/int340x_thermal/int3402_thermal.c
@@ -35,7 +35,8 @@ static void int3402_notify(acpi_handle handle, u32 event, void *data)
case INT3402_PERF_CHANGED_EVENT:
break;
case INT3402_THERMAL_EVENT:
- int340x_thermal_zone_device_update(priv->int340x_zone);
+ int340x_thermal_zone_device_update(priv->int340x_zone,
+ THERMAL_TRIP_VIOLATED);
break;
default:
break;