power: battery-charger: read temperature directly from thermal zone APIs
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 2 Jul 2013 07:48:46 +0000 (12:48 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:33:48 +0000 (13:33 -0700)
commit698ea50e5f7f02f9dbdd7ec1ed38a7b835c20adb
treed868e05f34f65a6134cfa0e0e464d86884465e26
parent6b02f649a5fc712690eed85e01ddf3e00b705b3e
power: battery-charger: read temperature directly from thermal zone APIs

In place of using the thermal zone structure member to get the temperature,
call the APIs from thermal zone to get temperature. This will protected by
lock

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/244205
(cherry picked from commit a08ec11ed71aa59e5813d52b1ede13bbcada9671)

Change-Id: I2231634d3f651c419a5f42473b8b2a240d128012
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/253365
Reviewed-by: Automatic_Commit_Validation_User
drivers/power/battery-charger-gauge-comm.c