Notify mmi_battery change when combo current change

Notify mmi_battery change when combo current change so that the
battery current status will be updated when combo current change.

Change-Id: Iddcf0d8fc7f9a1a44b6c042f1d72ae337931f37c
Signed-off-by: yanyh2 <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2226482
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
yanyh2 2022-03-25 20:53:12 +08:00 • committed by Yonghua Yan
commit 38e1c75ba0

View file

@ -1951,7 +1951,8 @@ static void mmi_update_battery_status(struct mmi_charger_chip *chip)
if (voltage_mv > 0 && chip->combo_voltage_mv != voltage_mv) {
chip->combo_voltage_mv = voltage_mv;
}
if (current_ma > 0 && chip->combo_current_ma != current_ma) {
if (chip->combo_current_ma != current_ma) {
mmi_changed = true;
chip->combo_current_ma = current_ma;
}
if (chip->max_charger_rate != max_charger_rate) {