aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/power_supply.h
diff options
context:
space:
mode:
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>2012-10-09 12:55:59 -0400
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-11-17 23:32:33 -0500
commit952aeeb3ee28bc12a70744e40636de40688eb60d (patch)
tree4690ab3549e59edee53e24df60f33295f96c0359 /include/linux/power_supply.h
parentea2ce92e44dc83b7a69c2aedd9c52bfe7fee1a62 (diff)
power_supply: Register power supply for thermal cooling device
This patch registers the power supply as a cooling device if the power supply has support for charge throttling. Now with this change low level drivers need not register with thermal framework as it is automatically done by power supply framework. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'include/linux/power_supply.h')
-rw-r--r--include/linux/power_supply.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index 445b4b249af5..1f0ab90aff00 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -188,6 +188,7 @@ struct power_supply {
188 struct work_struct changed_work; 188 struct work_struct changed_work;
189#ifdef CONFIG_THERMAL 189#ifdef CONFIG_THERMAL
190 struct thermal_zone_device *tzd; 190 struct thermal_zone_device *tzd;
191 struct thermal_cooling_device *tcd;
191#endif 192#endif
192 193
193#ifdef CONFIG_LEDS_TRIGGERS 194#ifdef CONFIG_LEDS_TRIGGERS