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:
Yonghua Yan 2019-04-29 11:16:38 +08:00
commit 19b94beead

View file

@ -1481,6 +1481,7 @@ static int get_prop_charger_present(struct smb_mmi_charger *chg,
val->intval = 1;
break;
default:
val->intval = 0;
break;
}