summaryrefslogtreecommitdiffstats
path: root/include/linux/thermal.h
diff options
context:
space:
mode:
authorZhang Rui2012-06-27 08:14:05 +0200
committerZhang Rui2012-09-24 08:44:37 +0200
commit908b9fb792b77663a007af240e7ee89460de2025 (patch)
treeaf3ac03a4823028a51b0f067a9da291368ff65be /include/linux/thermal.h
parentThermal: Introduce simple arbitrator for setting device cooling state (diff)
downloadkernel-qcow2-linux-908b9fb792b77663a007af240e7ee89460de2025.tar.gz
kernel-qcow2-linux-908b9fb792b77663a007af240e7ee89460de2025.tar.xz
kernel-qcow2-linux-908b9fb792b77663a007af240e7ee89460de2025.zip
Thermal: Unify the code for both active and passive cooling
Remove thermal_zone_device_passive(). And use thermal_zone_trip_update() and thermal_zone_do_update() for both active and passive cooling. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Reviewed-by: Rafael J. Wysocki <rjw@sisk.pl> Reviewed-by: Eduardo Valentin <eduardo.valentin@ti.com>
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r--include/linux/thermal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index de0515a96f9f..76d0fe88eb1c 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -121,7 +121,7 @@ struct thermal_zone_device {
int polling_delay;
int temperature;
int last_temperature;
- bool passive;
+ int passive;
unsigned int forced_passive;
const struct thermal_zone_device_ops *ops;
struct list_head thermal_instances;