mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
wlc: change wlc current from ibat to iout
For some charge pad, we need to get the result of iout from cps4019 to judge its working status. So ibat could not work in this scene. So we should change the current result form ibat to iout. Change-Id: Ie31b1308ecd59507208ad4ec9038e6e950bfef76 Reviewed-on: https://gerrit.mot.com/2330599 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
85bd3d719d
commit
eb15e8e279
1 changed files with 1 additions and 1 deletions
|
|
@ -1404,7 +1404,7 @@ static int cps_wls_chrg_get_property(struct power_supply *psy,
|
|||
val->intval = cps_wls_get_vout();
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_CURRENT_NOW:
|
||||
ret = cps_get_power_supply_prop("battery", psp, val);
|
||||
val->intval = cps_wls_get_iout();//cps_get_power_supply_prop("battery", psp, val);
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue