aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-11 12:03:01 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-11 12:03:01 -0500
commitbaf51c43926ec9aa42ef9d33ca6ee9e3e043aebe (patch)
tree3ae0fbc2389f8264f195699721c9489dc347ff4f /drivers/platform/x86
parentc5a37883f42be712a989e54d5d6c0159b0e56599 (diff)
parent7c5b2759bf8c2cbc60e5560c72cf51a2628f6d30 (diff)
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
Pull thermal updates from Zhang Rui: - Implement generic devfreq cooling mechanism through frequency reduction for devices using devfreq. From Ørjan Eide and Javi Merino. - Introduce OMAP3 support on TI SoC thermal driver. From Pavel Mack and Eduardo Valentin. - A bounch of small fixes on devfreq_cooling, Exynos, IMX, Armada, and Rockchip thermal drivers. * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: (24 commits) thermal: exynos: Directly return 0 instead of using local ret variable thermal: exynos: Remove unneeded semicolon thermal: exynos: Use IS_ERR() because regulator cannot be NULL thermal: exynos: Fix first temperature read after registering sensor thermal: exynos: Fix unbalanced regulator disable on probe failure devfreq_cooling: return on allocation failure thermal: rockchip: support the sleep pinctrl state to avoid glitches in s2r dt-bindings: rockchip-thermal: Add the pinctrl states in this document thermal: devfreq_cooling: Make power a u64 thermal: devfreq_cooling: use a thermal_cooling_device for register and unregister thermal: underflow bug in imx_set_trip_temp() thermal: armada: Fix possible overflow in the Armada 380 thermal sensor formula thermal: imx: register irq handler later in probe thermal: rockhip: fix setting thermal shutdown polarity thermal: rockchip: fix handling of invalid readings devfreq_cooling: add trace information thermal: Add devfreq cooling PM / OPP: get the voltage for all OPPs tools/thermal: tmon: use pkg-config also for CFLAGS linux/thermal.h: rename KELVIN_TO_CELSIUS to DECI_KELVIN_TO_CELSIUS ...
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/asus-wmi.c2
-rw-r--r--drivers/platform/x86/intel_menlow.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 1f7d80ff8cb4..e3a750224ae2 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -1320,7 +1320,7 @@ static ssize_t asus_hwmon_temp1(struct device *dev,
1320 if (err < 0) 1320 if (err < 0)
1321 return err; 1321 return err;
1322 1322
1323 value = KELVIN_TO_CELSIUS((value & 0xFFFF)) * 1000; 1323 value = DECI_KELVIN_TO_CELSIUS((value & 0xFFFF)) * 1000;
1324 1324
1325 return sprintf(buf, "%d\n", value); 1325 return sprintf(buf, "%d\n", value);
1326} 1326}
diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c
index e8b46d2c468c..0a919d81662c 100644
--- a/drivers/platform/x86/intel_menlow.c
+++ b/drivers/platform/x86/intel_menlow.c
@@ -315,7 +315,7 @@ static ssize_t aux0_show(struct device *dev,
315 315
316 result = sensor_get_auxtrip(attr->handle, 0, &value); 316 result = sensor_get_auxtrip(attr->handle, 0, &value);
317 317
318 return result ? result : sprintf(buf, "%lu", KELVIN_TO_CELSIUS(value)); 318 return result ? result : sprintf(buf, "%lu", DECI_KELVIN_TO_CELSIUS(value));
319} 319}
320 320
321static ssize_t aux1_show(struct device *dev, 321static ssize_t aux1_show(struct device *dev,
@@ -327,7 +327,7 @@ static ssize_t aux1_show(struct device *dev,
327 327
328 result = sensor_get_auxtrip(attr->handle, 1, &value); 328 result = sensor_get_auxtrip(attr->handle, 1, &value);
329 329
330 return result ? result : sprintf(buf, "%lu", KELVIN_TO_CELSIUS(value)); 330 return result ? result : sprintf(buf, "%lu", DECI_KELVIN_TO_CELSIUS(value));
331} 331}
332 332
333static ssize_t aux0_store(struct device *dev, 333static ssize_t aux0_store(struct device *dev,
@@ -345,7 +345,7 @@ static ssize_t aux0_store(struct device *dev,
345 if (value < 0) 345 if (value < 0)
346 return -EINVAL; 346 return -EINVAL;
347 347
348 result = sensor_set_auxtrip(attr->handle, 0, CELSIUS_TO_KELVIN(value)); 348 result = sensor_set_auxtrip(attr->handle, 0, CELSIUS_TO_DECI_KELVIN(value));
349 return result ? result : count; 349 return result ? result : count;
350} 350}
351 351
@@ -364,7 +364,7 @@ static ssize_t aux1_store(struct device *dev,
364 if (value < 0) 364 if (value < 0)
365 return -EINVAL; 365 return -EINVAL;
366 366
367 result = sensor_set_auxtrip(attr->handle, 1, CELSIUS_TO_KELVIN(value)); 367 result = sensor_set_auxtrip(attr->handle, 1, CELSIUS_TO_DECI_KELVIN(value));
368 return result ? result : count; 368 return result ? result : count;
369} 369}
370 370