power: max17042: Report full status only when charger plugged
authorDarbha Sriharsha <dsriharsha@nvidia.com>
Tue, 3 Sep 2013 07:04:14 +0000 (12:04 +0530)
committerMrutyunjay Sawant <msawant@nvidia.com>
Thu, 5 Sep 2013 12:50:11 +0000 (05:50 -0700)
commit7d1593f3154e6f5e9cdb87b11c953c7878df591c
tree6bafb302048e6d66e872f6ba6464f03c70c8893a
parent72013ad7d61dcef1ef5f2f04fd92d005836471c8
power: max17042: Report full status only when charger plugged

The battery gauge should report "100% Full" status only when the
battery is charged to full capacity and the charger is still
connected. When the battery is fully charged but the charger
cable is unplugged, we should report "100% Not Charging" as the
status

Bug 1358884

Change-Id: Ibfc7d30fdaab8c37fc99ccb5032719807780709a
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/269379
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/power/max17042_battery.c