]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
power: lc709203f:print battery votlage and soc level while booting
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Tue, 20 May 2014 11:51:54 +0000 (17:21 +0530)
committerTony Ly <tly@nvidia.com>
Fri, 23 May 2014 17:27:41 +0000 (10:27 -0700)
adding debug print to display battery voltage and soc level
while booting in kernel logs.

Change-Id: If34ca58cd1f4b96fe6f64b9b775f57b44949c111
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/412023
(cherry picked from commit 6878c1c33215059600339ee5bc88491f8af79918)
Reviewed-on: http://git-master/r/412971
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/power/lc709203f_battery.c

index b78698c40251e2bacfc19d4b4648ae7ba8c21c6d..1ee2050e95a3b504bab30096ff8f089240d1dd6a 100644 (file)
@@ -616,6 +616,9 @@ skip_thermistor_config:
        }
        device_set_wakeup_capable(&client->dev, 1);
 
+       dev_info(&client->dev, "Battery Voltage %dmV and SoC %d%%\n",
+                       chip->vcell, chip->soc);
+
        return 0;
 irq_reg_error:
        cancel_delayed_work_sync(&chip->work);