]> Pileus Git - ~andy/linux/blobdiff - drivers/thermal/thermal_core.c
Merge branches 'for-rc' and 'ti-soc' of .git into next
[~andy/linux] / drivers / thermal / thermal_core.c
index e56ded5984b5d6d2a5696cb0b38ecc2aa1e75df5..1f02e8edb45c9f6b36dae08a563b47efecf4c99d 100644 (file)
@@ -156,7 +156,8 @@ int get_tz_trend(struct thermal_zone_device *tz, int trip)
 {
        enum thermal_trend trend;
 
-       if (!tz->ops->get_trend || tz->ops->get_trend(tz, trip, &trend)) {
+       if (tz->emul_temperature || !tz->ops->get_trend ||
+           tz->ops->get_trend(tz, trip, &trend)) {
                if (tz->temperature > tz->last_temperature)
                        trend = THERMAL_TREND_RAISING;
                else if (tz->temperature < tz->last_temperature)