diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2016-08-27 02:21:18 +0300 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2016-09-27 09:37:14 +0300 |
commit | 9176ae8668a005b5441604bd1b47eeec07c27d94 (patch) | |
tree | 562cd1a6eaadfe060f09bc16327d094b42dde405 /drivers/thermal/int340x_thermal/int3403_thermal.c | |
parent | 998d924b712896c540c76c679fc7d53d6a880d5d (diff) | |
download | linux-9176ae8668a005b5441604bd1b47eeec07c27d94.tar.xz |
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/int3403_thermal.c')
-rw-r--r-- | drivers/thermal/int340x_thermal/int3403_thermal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/thermal/int340x_thermal/int3403_thermal.c b/drivers/thermal/int340x_thermal/int3403_thermal.c index 50a7a08e3a15..7643489f207c 100644 --- a/drivers/thermal/int340x_thermal/int3403_thermal.c +++ b/drivers/thermal/int340x_thermal/int3403_thermal.c @@ -72,7 +72,8 @@ static void int3403_notify(acpi_handle handle, case INT3403_PERF_CHANGED_EVENT: break; case INT3403_THERMAL_EVENT: - int340x_thermal_zone_device_update(obj->int340x_zone); + int340x_thermal_zone_device_update(obj->int340x_zone, + THERMAL_TRIP_VIOLATED); break; default: dev_err(&priv->pdev->dev, "Unsupported event [0x%x]\n", event); |