power: ds2781: Reset ACR if not 100% when charge complete
authorGreg Meiste <w30289@motorola.com>
Tue, 2 Nov 2010 16:04:05 +0000 (11:04 -0500)
committerColin Cross <ccross@android.com>
Tue, 2 Nov 2010 23:10:40 +0000 (16:10 -0700)
commita7d706612f30e71f019e1741c93db4df14382187
treeb779010ae12be05e460019788c4fb212052d6d88
parent7b1c6c7d577f755165cac32e817f557e2cdc0f8b
power: ds2781: Reset ACR if not 100% when charge complete

If the charge IC reaches charge complete, it obviously will stop
charging.  If the DS2781 has not reached 100%, it never will.  So
reset the ACR register to the 100% value.

The DS2781 is supposed to reset itself to 100% if charge complete
is reached, but it is not doing so reliably.  Maxim has suggested
this as a workaround.

Change-Id: I97e532570694019227af4af4280ef06e9d67c6b2
Signed-off-by: Greg Meiste <w30289@motorola.com>
drivers/power/ds2781_battery.c