Commit fa53e351 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Mark Brown

usb: phy: phy-msm-usb: Rename regulator_set_optimum_mode

The function regulator_set_optimum_mode() is changing name to
regulator_set_load(), so update the code accordingly.
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1d61a694
...@@ -142,27 +142,22 @@ static int msm_hsusb_ldo_set_mode(struct msm_otg *motg, int on) ...@@ -142,27 +142,22 @@ static int msm_hsusb_ldo_set_mode(struct msm_otg *motg, int on)
int ret = 0; int ret = 0;
if (on) { if (on) {
ret = regulator_set_optimum_mode(motg->v1p8, ret = regulator_set_load(motg->v1p8, USB_PHY_1P8_HPM_LOAD);
USB_PHY_1P8_HPM_LOAD);
if (ret < 0) { if (ret < 0) {
pr_err("Could not set HPM for v1p8\n"); pr_err("Could not set HPM for v1p8\n");
return ret; return ret;
} }
ret = regulator_set_optimum_mode(motg->v3p3, ret = regulator_set_load(motg->v3p3, USB_PHY_3P3_HPM_LOAD);
USB_PHY_3P3_HPM_LOAD);
if (ret < 0) { if (ret < 0) {
pr_err("Could not set HPM for v3p3\n"); pr_err("Could not set HPM for v3p3\n");
regulator_set_optimum_mode(motg->v1p8, regulator_set_load(motg->v1p8, USB_PHY_1P8_LPM_LOAD);
USB_PHY_1P8_LPM_LOAD);
return ret; return ret;
} }
} else { } else {
ret = regulator_set_optimum_mode(motg->v1p8, ret = regulator_set_load(motg->v1p8, USB_PHY_1P8_LPM_LOAD);
USB_PHY_1P8_LPM_LOAD);
if (ret < 0) if (ret < 0)
pr_err("Could not set LPM for v1p8\n"); pr_err("Could not set LPM for v1p8\n");
ret = regulator_set_optimum_mode(motg->v3p3, ret = regulator_set_load(motg->v3p3, USB_PHY_3P3_LPM_LOAD);
USB_PHY_3P3_LPM_LOAD);
if (ret < 0) if (ret < 0)
pr_err("Could not set LPM for v3p3\n"); pr_err("Could not set LPM for v3p3\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment