summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2014-04-11 16:58:00 +0530
committerRiham Haidar <rhaidar@nvidia.com>2014-05-06 10:50:25 -0700
commit241fff98b6b9450d4ff047ba2f3a3d778cac6da4 (patch)
tree30c709efdf20ecf474c527c3ffe7ed9b1daacaf7 /drivers/power
parenteea661d31a429a88f0f1f259e8a2ed49bfb57146 (diff)
power: lc709203f: prints voltage and SOC level at shutdown
Prints the voltage and soc level at shutdown stage to help on analysing the log. Change-Id: I13f612473c155a1b7409454ea49ce55d645c7d6f Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/396750 Reviewed-on: http://git-master/r/405643 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/lc709203f_battery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/lc709203f_battery.c b/drivers/power/lc709203f_battery.c
index 6149f99f2a37..f31e98e4a3bb 100644
--- a/drivers/power/lc709203f_battery.c
+++ b/drivers/power/lc709203f_battery.c
@@ -641,6 +641,8 @@ static void lc709203f_shutdown(struct i2c_client *client)
mutex_unlock(&chip->mutex);
cancel_delayed_work_sync(&chip->work);
+ dev_info(&chip->client->dev, "At shutdown Voltage %dmV and SoC %d%%\n",
+ chip->vcell, chip->soc);
}
#ifdef CONFIG_PM_SLEEP