power: max17048: Use Tskin instead of Batt temp
David Pu [Wed, 27 Nov 2013 03:03:20 +0000 (11:03 +0800)]
apply change http://git-master/r/289141 for tegranote7c also.

Bug 1410152

Change-Id: I012a829b8fbb3fa6f3bcb2d0c2cefd3a77f247c4
Reviewed-on: http://git-master/r/335989
(cherry picked from commit 856af7c16d5acc96f1a3315fa80759302b0f8919)

Signed-off-by: David Pu <dpu@nvidia.com>
Change-Id: Ie350cbed676d728dd463c2a772fe43dc755f1795
Reviewed-on: http://git-master/r/337153
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

drivers/power/max17048_battery.c

index c48124d..dca1460 100644 (file)
@@ -442,7 +442,7 @@ static void max17048_work(struct work_struct *work)
 
        chip = container_of(work, struct max17048_chip, work.work);
 
-       if (machine_is_tegratab()) {
+       if (machine_is_tegratab() || machine_is_tegranote7c()) {
                /* Use Tskin as Battery Temp */
                max17048_thz_get_temp("therm_est", &temp);