power: max17048: add battery temperature property
authorHyongbin Kim <hyongbink@nvidia.com>
Mon, 26 Aug 2013 07:08:45 +0000 (16:08 +0900)
committerHarry Hong <hhong@nvidia.com>
Mon, 21 Oct 2013 10:07:00 +0000 (03:07 -0700)
commit3da80ffdd03ad43d2ccd07a477eb960fa8b8ce04
tree2cb923cbc02e331f9259643ba84a751d6b898d84
parent5183852ff4f107939a03f0b9dd6176471c035e60
power: max17048: add battery temperature property

To show battery temperature in APP, add POWER_SUPPLY_PROP_TEMP and
POWER_SUPPLY_PROP_TEMP_AMBIENT in property.
Android temperature unit is 1/10 C.
And when battery temp is too hot(60) or too cold(-10),
change battery health property.

Bug 1302687
Bug 1355391

Change-Id: I530a7cd55e1abe8e7a1e3d12cfb2a95c169291d3
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/266047
(cherry picked from commit 50e2f7a6333ce75900995185c257d01d772173b9)
Reviewed-on: http://git-master/r/301643
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>
drivers/power/max17048_battery.c