]> xenbits.xensource.com Git - people/aperard/linux-arndale.git/commitdiff
thermal: exynos: Use the new thermal trend type for quick cooling action.
authorAmit Daniel Kachhap <amit.kachhap@linaro.org>
Fri, 23 Nov 2012 13:04:26 +0000 (18:34 +0530)
committerVasanth Ananthan <vasanthananthan@gmail.com>
Tue, 8 Jan 2013 10:34:51 +0000 (16:04 +0530)
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.

Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
drivers/thermal/exynos_thermal.c

index 70038d28445cff62eb3b7dd2234132020e0d7826..391a86b75bf246c580f34fc6a19c99968093e940 100644 (file)
@@ -287,7 +287,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;
                        }
@@ -373,9 +373,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 ret;
 }