mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
mmi_pl_chg: replace PROP_STATUS with CHARGE_NOW_ERROR
In the bq2597x_mmi drive, the PROP_STATUS was replace with CHARGE_NOW_ERROR, and the mmi_pl_chg_manager also replace it Change-Id: Id9cdf2991f54717e2c4ed079b952b633d09efe46 Signed-off-by: xuwt2 <xuwt2@lenovo.com> Reviewed-on: https://gerrit.mot.com/1263623 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
8d70153b28
commit
d537117733
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ static void mmi_update_flashc_status(struct mmi_pl_chg_manager *chip)
|
|||
chip->flashc_handle.charge_enabled = !!prop.intval;
|
||||
|
||||
rc = power_supply_get_property(chip->flashc_psy,
|
||||
POWER_SUPPLY_PROP_STATUS, &prop);
|
||||
POWER_SUPPLY_PROP_CHARGE_NOW_ERROR, &prop);
|
||||
if (!rc) {
|
||||
chip->flashc_handle.bat_ovp_alarm =
|
||||
!!(prop.intval & BAT_OVP_ALARM_MASK);
|
||||
|
|
|
|||
Loading…
Reference in a new issue