power: max77665: pass CHGIN_ILIM to update_status
authorSivaram Nair <sivaramn@nvidia.com>
Mon, 14 Jan 2013 14:11:39 +0000 (16:11 +0200)
committerSimone Willett <swillett@nvidia.com>
Fri, 18 Jan 2013 01:10:48 +0000 (17:10 -0800)
commit8ce9a56a1a6e3a7cf35481d457e0e99aa7b6ece9
tree6b447e292248854be95a552d4da41ba1b9ac66f6
parent50d9ba35309b3d3909559557494a4fb1599b8a4f
power: max77665: pass CHGIN_ILIM to update_status

This is a WAR for problems mentioned in the bug report (see below).
Instead of passing true, the charging limit (a non-zero) value is passed
into the update_status callback function. This will be exploited by the
fuel guage driver in order to calculate the battery depletion values.

Bug 1214607

Change-Id: I16bdcd99aafd1e03d0377cb6849352dbaa1e2ad9
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit bf9d20d92ae4c2b5c4796260bc34901f4f5e9cb1)
Reviewed-on: http://git-master/r/191636
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/power/max77665-charger.c