]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: int340x: New Interface to read trip and notify
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 26 Aug 2016 23:21:18 +0000 (16:21 -0700)
committerZhang Rui <rui.zhang@intel.com>
Tue, 27 Sep 2016 06:37:14 +0000 (14:37 +0800)
commit7d6260b8aa25a483f8ab2e7e08f775173c794995
tree562cd1a6eaadfe060f09bc16327d094b42dde405
parent5efd2572f1ad2c0988b549030518a42766114267
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>
drivers/thermal/int340x_thermal/int3402_thermal.c
drivers/thermal/int340x_thermal/int3403_thermal.c
drivers/thermal/int340x_thermal/int340x_thermal_zone.c
drivers/thermal/int340x_thermal/int340x_thermal_zone.h
drivers/thermal/int340x_thermal/processor_thermal_device.c