mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
5b1ad1966c
commit
77f7c23afb
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue