diff options
author | Xin Xie <xxie@nvidia.com> | 2012-07-12 15:17:37 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-15 11:56:07 -0700 |
commit | 9f7c44c177ec7c567d045729022f5bf55391b71e (patch) | |
tree | 7d0a1685635f2c940d123babe0b1dcdac87f0e0a | |
parent | 5c62ed785f69f361ba1702a65876cd73e329a5f8 (diff) |
power: tps80031-battery: enable battery full event
BUG 1015045
Change-Id: Id9ac783365f08787638edc057d55f29c9a0e46eb
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/122310
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
-rw-r--r-- | drivers/power/tps80031_battery_gauge.c | 2 |
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); |