lkml.org 
[lkml]   [2015]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/5] usb: phy: phy-msm-usb: Rename regulator_set_optimum_mode
On Wed, Feb 11, 2015 at 07:35:30PM -0800, Bjorn Andersson wrote:
> The function regulator_set_optimum_mode() is changing name to
> regulator_set_load(), so update the code accordingly.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>

since this depends on the rest of the series:

Acked-by: Felipe Balbi <balbi@ti.com>

> ---
> drivers/usb/phy/phy-msm-usb.c | 15 +++++----------
> 1 file changed, 5 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c
> index 000fd89..6ed67ea 100644
> --- a/drivers/usb/phy/phy-msm-usb.c
> +++ b/drivers/usb/phy/phy-msm-usb.c
> @@ -142,27 +142,22 @@ static int msm_hsusb_ldo_set_mode(struct msm_otg *motg, int on)
> int ret = 0;
>
> if (on) {
> - ret = regulator_set_optimum_mode(motg->v1p8,
> - USB_PHY_1P8_HPM_LOAD);
> + ret = regulator_set_load(motg->v1p8, USB_PHY_1P8_HPM_LOAD);
> if (ret < 0) {
> pr_err("Could not set HPM for v1p8\n");
> return ret;
> }
> - ret = regulator_set_optimum_mode(motg->v3p3,
> - USB_PHY_3P3_HPM_LOAD);
> + ret = regulator_set_load(motg->v3p3, USB_PHY_3P3_HPM_LOAD);
> if (ret < 0) {
> pr_err("Could not set HPM for v3p3\n");
> - regulator_set_optimum_mode(motg->v1p8,
> - USB_PHY_1P8_LPM_LOAD);
> + regulator_set_load(motg->v1p8, USB_PHY_1P8_LPM_LOAD);
> return ret;
> }
> } else {
> - ret = regulator_set_optimum_mode(motg->v1p8,
> - USB_PHY_1P8_LPM_LOAD);
> + ret = regulator_set_load(motg->v1p8, USB_PHY_1P8_LPM_LOAD);
> if (ret < 0)
> pr_err("Could not set LPM for v1p8\n");
> - ret = regulator_set_optimum_mode(motg->v3p3,
> - USB_PHY_3P3_LPM_LOAD);
> + ret = regulator_set_load(motg->v3p3, USB_PHY_3P3_LPM_LOAD);
> if (ret < 0)
> pr_err("Could not set LPM for v3p3\n");
> }
> --
> 1.8.2.2
>

--
balbi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-02-27 16:41    [W:0.154 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site