Skip to content

Commit

Permalink
thermal: exynos: Use the new thermal trend type for quick cooling act…
Browse files Browse the repository at this point in the history
…ion.

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>
  • Loading branch information
Amit Daniel Kachhap authored and Zhang Rui committed Feb 8, 2013
1 parent 4f0a684 commit ce760ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/thermal/exynos_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ static int exynos_bind(struct thermal_zone_device *thermal,
case MONITOR_ZONE:
case WARN_ZONE:
if (thermal_zone_bind_cooling_device(thermal, i, cdev,
level, level)) {
level, 0)) {
pr_err("error binding cdev inst %d\n", i);
ret = -EINVAL;
}
Expand Down Expand Up @@ -381,9 +381,9 @@ static int exynos_get_trend(struct thermal_zone_device *thermal,
return ret;

if (thermal->temperature >= trip_temp)
*trend = THERMAL_TREND_RAISING;
*trend = THERMAL_TREND_RAISE_FULL;
else
*trend = THERMAL_TREND_DROPPING;
*trend = THERMAL_TREND_DROP_FULL;

return 0;
}
Expand Down

0 comments on commit ce760ed

Please sign in to comment.