Merge "usb: dwc3-msm: Use PROP_INPUT_CURRENT_LIMIT to for vbus_draw"

This commit is contained in:
qctecmdr 2020-04-15 04:56:58 -07:00 • committed by Gerrit - the friendly Code Review server
commit 7367818d85

View file

@ -4749,7 +4749,7 @@ static int dwc3_msm_gadget_vbus_draw(struct dwc3_msm *mdwc, unsigned int mA)
/* Set max current limit in uA */
pval.intval = 1000 * mA;
ret = power_supply_set_property(mdwc->usb_psy,
POWER_SUPPLY_PROP_CURRENT_MAX, &pval);
POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT, &pval);
if (ret) {
dev_dbg(mdwc->dev, "power supply error when setting property\n");
return ret;