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:
xuwt2 2018-11-01 20:14:11 +08:00 • committed by Wentao Xu
commit d537117733

View file

@ -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);