mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
power: fix wrong charger presence detection
There is mistake for charger presence judgement when the device is in sink mode. Mot-CRs-fixed: (CR) Change-Id: I5ce02d839cae40763f00e0bcf3cda24947f9b08a Signed-off-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-on: https://gerrit.mot.com/1345262 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Reviewed-by: Haijian Ma <mahj8@motorola.com> Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1355880
This commit is contained in:
parent
ed1e4e9416
commit
19b94beead
1 changed files with 1 additions and 0 deletions
|
|
@ -1481,6 +1481,7 @@ static int get_prop_charger_present(struct smb_mmi_charger *chg,
|
|||
val->intval = 1;
|
||||
break;
|
||||
default:
|
||||
val->intval = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue