summaryrefslogtreecommitdiff
path: root/include/linux/power_supply.h
diff options
context:
space:
mode:
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>2012-10-09 16:55:59 (GMT)
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-11-18 04:32:33 (GMT)
commit952aeeb3ee28bc12a70744e40636de40688eb60d (patch)
tree4690ab3549e59edee53e24df60f33295f96c0359 /include/linux/power_supply.h
parentea2ce92e44dc83b7a69c2aedd9c52bfe7fee1a62 (diff)
downloadlinux-fsl-qoriq-952aeeb3ee28bc12a70744e40636de40688eb60d.tar.xz
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 445b4b2..1f0ab90 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -188,6 +188,7 @@ struct power_supply {
struct work_struct changed_work;
#ifdef CONFIG_THERMAL
struct thermal_zone_device *tzd;
+ struct thermal_cooling_device *tcd;
#endif
#ifdef CONFIG_LEDS_TRIGGERS