mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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:
parent
0d6c5265a4
commit
38e1c75ba0
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue