mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
rt9471 charge status incorrect
CQA test fail at battery info if ic status is ready, charge status should be not charging Change-Id: Ifd83cd1dc2c122a70f1b90e275405e3448986cf7 Signed-off-by: longc102 <longc102@motorola.com> Reviewed-on: https://gerrit.mot.com/2247969 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie <xieq2@motorola.com> Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
This commit is contained in:
parent
746007756c
commit
7149d8c4e8
1 changed files with 2 additions and 1 deletions
|
|
@ -2215,7 +2215,8 @@ static int rt9471_charger_get_property(struct power_supply *psy,
|
|||
val->intval = POWER_SUPPLY_STATUS_CHARGING;
|
||||
} else if (ic_stat == RT9471_ICSTAT_BGCHG ||
|
||||
ic_stat == RT9471_ICSTAT_IEOC ||
|
||||
ic_stat == RT9471_ICSTAT_CHGDONE) {
|
||||
ic_stat == RT9471_ICSTAT_CHGDONE ||
|
||||
ic_stat == RT9471_ICSTAT_VBUSRDY) {
|
||||
val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING;
|
||||
} else {
|
||||
val->intval = POWER_SUPPLY_STATUS_DISCHARGING;
|
||||
|
|
|
|||
Loading…
Reference in a new issue