fix wired charging error online logic

Only when wireless charging is used, re-judgment whether it is online
or not. but wired charging maintains the previous online status.

Change-Id: I01b2074f496867237fc733645a088329e5432818
Reviewed-on: https://gerrit.mot.com/2442366
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
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:
litong20 2022-11-28 10:27:20 +08:00 • committed by litong
commit 77f7c23afb

View file

@ -794,8 +794,6 @@ static int sgm4154x_get_state(struct sgm4154x_device *sgm,
if (!state->online && is_wls_online(sgm)) {
state->online = 1;
state->chrg_type = SGM4154x_WLS_TYPE;
} else {
state->online = 0;
}
state->therm_stat = !!(chrg_stat & SGM4154x_THERM_STAT);