aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator/consumer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/regulator/consumer.h')
-rw-r--r--include/linux/regulator/consumer.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index d17e1ff7ad01..6d4e9d2289f0 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -238,7 +238,7 @@ int regulator_get_current_limit(struct regulator *regulator);
238 238
239int regulator_set_mode(struct regulator *regulator, unsigned int mode); 239int regulator_set_mode(struct regulator *regulator, unsigned int mode);
240unsigned int regulator_get_mode(struct regulator *regulator); 240unsigned int regulator_get_mode(struct regulator *regulator);
241int regulator_set_optimum_mode(struct regulator *regulator, int load_uA); 241int regulator_set_load(struct regulator *regulator, int load_uA);
242 242
243int regulator_allow_bypass(struct regulator *regulator, bool allow); 243int regulator_allow_bypass(struct regulator *regulator, bool allow);
244 244
@@ -479,8 +479,7 @@ static inline unsigned int regulator_get_mode(struct regulator *regulator)
479 return REGULATOR_MODE_NORMAL; 479 return REGULATOR_MODE_NORMAL;
480} 480}
481 481
482static inline int regulator_set_optimum_mode(struct regulator *regulator, 482static inline int regulator_set_load(struct regulator *regulator, int load_uA)
483 int load_uA)
484{ 483{
485 return REGULATOR_MODE_NORMAL; 484 return REGULATOR_MODE_NORMAL;
486} 485}
@@ -555,4 +554,11 @@ static inline int regulator_is_supported_voltage_tol(struct regulator *regulator
555 target_uV + tol_uV); 554 target_uV + tol_uV);
556} 555}
557 556
557/* TEMP: Wrapper to keep bisectability */
558static inline int regulator_set_optimum_mode(struct regulator *regulator,
559 int load_uA)
560{
561 return regulator_set_load(regulator, load_uA);
562}
563
558#endif 564#endif