summaryrefslogtreecommitdiffstats
path: root/include/linux/power_supply.h
diff options
context:
space:
mode:
authorJenny TC <jenny.tc@intel.com>2012-05-09 20:36:47 +0530
committerAnton Vorontsov <cbouatmailru@gmail.com>2012-06-17 21:25:39 -0700
commit3be330bf8860dc6079da5acc81295787a04cf4c9 (patch)
tree3d62ec1d5bcbfcee0d52f56a2193171785d3a569 /include/linux/power_supply.h
parent7dbae5562e86f2731d13bd2b8b3ea3f974f4b87d (diff)
downloadlinux-3be330bf8860dc6079da5acc81295787a04cf4c9.tar.gz
linux-3be330bf8860dc6079da5acc81295787a04cf4c9.tar.xz
power_supply: Register battery as a thermal zone
Battery and charger contribute to Thermals in most of the embedded devices. So, it makes sense to identify them as Thermal zones in a particular platform. This patch registers a thermal zone if the power supply is reporting a temperature property. The thermal zone will be used by platform's thermal management solution. Signed-off-by: Jenny TC <jenny.tc@intel.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'include/linux/power_supply.h')
-rw-r--r--include/linux/power_supply.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index 3b912bee28d1..59ed2dd9dba9 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -173,6 +173,9 @@ struct power_supply {
/* private */
struct device *dev;
struct work_struct changed_work;
+#ifdef CONFIG_THERMAL
+ struct thermal_zone_device *tzd;
+#endif
#ifdef CONFIG_LEDS_TRIGGERS
struct led_trigger *charging_full_trig;