mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
regulator: fixes for regulator_set_optimum_mode name change
Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
ae6e808f15
commit
7e476c7dd8
2 changed files with 5 additions and 5 deletions
|
|
@ -346,10 +346,10 @@ int ufs_qcom_phy_cfg_vreg(struct phy *phy,
|
|||
goto out;
|
||||
}
|
||||
uA_load = on ? vreg->max_uA : 0;
|
||||
ret = regulator_set_optimum_mode(reg, uA_load);
|
||||
ret = regulator_set_load(reg, uA_load);
|
||||
if (ret >= 0) {
|
||||
/*
|
||||
* regulator_set_optimum_mode() returns new regulator
|
||||
* regulator_set_load() returns new regulator
|
||||
* mode upon success.
|
||||
*/
|
||||
ret = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue