Commit ce760ed3 authored by Amit Daniel Kachhap's avatar Amit Daniel Kachhap Committed by Zhang Rui

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: default avatarKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarAmit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 4f0a6847
...@@ -295,7 +295,7 @@ static int exynos_bind(struct thermal_zone_device *thermal, ...@@ -295,7 +295,7 @@ static int exynos_bind(struct thermal_zone_device *thermal,
case MONITOR_ZONE: case MONITOR_ZONE:
case WARN_ZONE: case WARN_ZONE:
if (thermal_zone_bind_cooling_device(thermal, i, cdev, if (thermal_zone_bind_cooling_device(thermal, i, cdev,
level, level)) { level, 0)) {
pr_err("error binding cdev inst %d\n", i); pr_err("error binding cdev inst %d\n", i);
ret = -EINVAL; ret = -EINVAL;
} }
...@@ -381,9 +381,9 @@ static int exynos_get_trend(struct thermal_zone_device *thermal, ...@@ -381,9 +381,9 @@ static int exynos_get_trend(struct thermal_zone_device *thermal,
return ret; return ret;
if (thermal->temperature >= trip_temp) if (thermal->temperature >= trip_temp)
*trend = THERMAL_TREND_RAISING; *trend = THERMAL_TREND_RAISE_FULL;
else else
*trend = THERMAL_TREND_DROPPING; *trend = THERMAL_TREND_DROP_FULL;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment