aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2013-02-07 20:13:07 -0500
committerZhang Rui <rui.zhang@intel.com>2013-02-08 07:26:14 -0500
commitce760ed3f440cfa51785c64dad9b4bd87673bb11 (patch)
tree25c78b2cdc75fa89599b8e2f86252a4bd32ee0f4 /drivers/thermal
parent4f0a6847815837b63b05fc23878ba391701d8f6a (diff)
thermal: exynos: Use the new thermal trend type for quick cooling action.
This patch uses the quick thermal cooling trend type macros. This is needed as exynos5 and other thermal sensors now supports only interrupt method for thresold temperature check. Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/exynos_thermal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c
index f4dd68a25022..64aa8b445054 100644
--- a/drivers/thermal/exynos_thermal.c
+++ b/drivers/thermal/exynos_thermal.c
@@ -295,7 +295,7 @@ static int exynos_bind(struct thermal_zone_device *thermal,
295 case MONITOR_ZONE: 295 case MONITOR_ZONE:
296 case WARN_ZONE: 296 case WARN_ZONE:
297 if (thermal_zone_bind_cooling_device(thermal, i, cdev, 297 if (thermal_zone_bind_cooling_device(thermal, i, cdev,
298 level, level)) { 298 level, 0)) {
299 pr_err("error binding cdev inst %d\n", i); 299 pr_err("error binding cdev inst %d\n", i);
300 ret = -EINVAL; 300 ret = -EINVAL;
301 } 301 }
@@ -381,9 +381,9 @@ static int exynos_get_trend(struct thermal_zone_device *thermal,
381 return ret; 381 return ret;
382 382
383 if (thermal->temperature >= trip_temp) 383 if (thermal->temperature >= trip_temp)
384 *trend = THERMAL_TREND_RAISING; 384 *trend = THERMAL_TREND_RAISE_FULL;
385 else 385 else
386 *trend = THERMAL_TREND_DROPPING; 386 *trend = THERMAL_TREND_DROP_FULL;
387 387
388 return 0; 388 return 0;
389} 389}