]> git.karo-electronics.de Git - linux-beck.git/commit
power_supply: Register battery as a thermal zone
authorJenny TC <jenny.tc@intel.com>
Wed, 9 May 2012 15:06:47 +0000 (20:36 +0530)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Mon, 18 Jun 2012 04:25:39 +0000 (21:25 -0700)
commit3be330bf8860dc6079da5acc81295787a04cf4c9
tree3d62ec1d5bcbfcee0d52f56a2193171785d3a569
parent7dbae5562e86f2731d13bd2b8b3ea3f974f4b87d
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>
drivers/power/power_supply_core.c
include/linux/power_supply.h