aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/st
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-09-11 19:13:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-11 19:13:47 -0400
commit9ebd051a7d5aa7b0ce813c3c2e5b9c851e7774b9 (patch)
tree5bc54f2de4312e5fe13356779c7bf49132e2a3fd /drivers/thermal/st
parent51a73ba5f409ef6f419c8ec3a0d1257633500aaa (diff)
parent5a924a07f882e866f2337bf65048be357956691a (diff)
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
Pull thermal updates from Zhang Rui: - use int instead of unsigned long to represent temperature to avoid bogus overheat detection when negative temperature reported. From Sascha Hauer. - export available thermal governors information to user space via sysfs. From Wei Ni. - introduce new thermal driver for Wildcat Point platform controller hub, which uses PCH thermal sensor and associated critical and hot trip points. From Tushar Dave. - add suuport for Intel Skylake and Denlow platforms in powerclamp driver. - some small cleanups in thermal core. * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: thermal: Add Intel PCH thermal driver thermal: Add comment explaining test for critical temperature thermal: Use IS_ENABLED instead of #ifdef thermal: remove unnecessary call to thermal_zone_device_set_polling thermal: trivial: fix typo in comment thermal: consistently use int for temperatures thermal: add available policies sysfs attribute thermal/powerclamp: add cpu id for denlow platform thermal/powerclamp: add cpu id for Skylake u/y thermal/powerclamp: add cpu id for skylake h/s
Diffstat (limited to 'drivers/thermal/st')
-rw-r--r--drivers/thermal/st/st_thermal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/thermal/st/st_thermal.c b/drivers/thermal/st/st_thermal.c
index 88c759d746c3..be637e6b01d2 100644
--- a/drivers/thermal/st/st_thermal.c
+++ b/drivers/thermal/st/st_thermal.c
@@ -111,8 +111,7 @@ static int st_thermal_calibration(struct st_thermal_sensor *sensor)
111} 111}
112 112
113/* Callback to get temperature from HW*/ 113/* Callback to get temperature from HW*/
114static int st_thermal_get_temp(struct thermal_zone_device *th, 114static int st_thermal_get_temp(struct thermal_zone_device *th, int *temperature)
115 unsigned long *temperature)
116{ 115{
117 struct st_thermal_sensor *sensor = th->devdata; 116 struct st_thermal_sensor *sensor = th->devdata;
118 struct device *dev = sensor->dev; 117 struct device *dev = sensor->dev;
@@ -159,7 +158,7 @@ static int st_thermal_get_trip_type(struct thermal_zone_device *th,
159} 158}
160 159
161static int st_thermal_get_trip_temp(struct thermal_zone_device *th, 160static int st_thermal_get_trip_temp(struct thermal_zone_device *th,
162 int trip, unsigned long *temp) 161 int trip, int *temp)
163{ 162{
164 struct st_thermal_sensor *sensor = th->devdata; 163 struct st_thermal_sensor *sensor = th->devdata;
165 struct device *dev = sensor->dev; 164 struct device *dev = sensor->dev;