mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "usb: dwc3-msm: Use PROP_INPUT_CURRENT_LIMIT to for vbus_draw"
This commit is contained in:
commit
7367818d85
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue