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:
weiweij 2022-07-12 15:47:11 +08:00 • committed by Wei Wei
commit eb15e8e279

View file

@ -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;