summaryrefslogtreecommitdiff
path: root/drivers/power/tps80031_battery_gauge.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/tps80031_battery_gauge.c')
-rw-r--r--drivers/power/tps80031_battery_gauge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/tps80031_battery_gauge.c b/drivers/power/tps80031_battery_gauge.c
index 69bad9caa99d..f339b41cf039 100644
--- a/drivers/power/tps80031_battery_gauge.c
+++ b/drivers/power/tps80031_battery_gauge.c
@@ -433,6 +433,8 @@ void tps80031_battery_status(enum charging_states status, void *data)
di->usb_status = POWER_SUPPLY_STATUS_DISCHARGING;
di->ac_online = 0;
di->usb_online = 0;
+ } else if (status == charging_state_charging_completed) {
+ di->usb_status = POWER_SUPPLY_STATUS_FULL;
}
power_supply_changed(&di->usb);
power_supply_changed(&di->bat);