summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Troast <ntroast@codeaurora.org>2016-07-08 10:59:22 -0700
committerNicholas Troast <ntroast@codeaurora.org>2016-07-12 11:47:58 -0700
commita3cb63f7547036219ff481eb19d564bc3aa59451 (patch)
tree0fddf4a34a749cfc451ec6c9235b6dd12b83b1b3
parentf600d8b9ec91f477d6b7a83cb60c83d15de51167 (diff)
qcom-charger: qpnp-smb2: update battery charging status on input suspend
When input is suspended the battery will be discharging. Currently consumers are not notified that the charging status has changed. Send a power supply changed event for the battery power supply to notify consumers that it has changed. Change-Id: I6cdf63812cc9dafbb0365c05761cfae18446d31f Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
-rw-r--r--drivers/power/qcom-charger/smb-lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/qcom-charger/smb-lib.c b/drivers/power/qcom-charger/smb-lib.c
index 46b824376847..1d2e986d6b39 100644
--- a/drivers/power/qcom-charger/smb-lib.c
+++ b/drivers/power/qcom-charger/smb-lib.c
@@ -827,6 +827,7 @@ int smblib_set_prop_input_suspend(struct smb_charger *chg,
return rc;
}
+ power_supply_changed(chg->batt_psy);
return rc;
}