Only report full when the charge IC says charge is complete. It is
likely that the DS2781 will report 100% before the charge IC reaches
charge complete. This change will cause full to be reported at the
same time the charge LED turns green on Stingray.
Change-Id: I4c3be724470b15fb848d284f8786f0458fe463d4
Signed-off-by: Greg Meiste <w30289@motorola.com>
switch (psp) {
case POWER_SUPPLY_PROP_STATUS:
if (is_ac_charging()) {
- if ((di->status.battery_full) ||
- (di->status.percentage >= 100))
+ if (di->status.battery_full)
val->intval = POWER_SUPPLY_STATUS_FULL;
else
val->intval = POWER_SUPPLY_STATUS_CHARGING;