aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorPhilip Rakity <prakity@marvell.com>2012-06-30 19:05:36 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-01 14:10:19 -0400
commit4fe23791a4052ad4c8ba79dab9ff5febc8095714 (patch)
treeb262d09e4f93adbd7196aa5987f5fde1a17691b1 /include/linux/regulator
parentbf2516cd020dbf80ed2f1750ac1f4b0da3549c91 (diff)
regulator: add missing defintion regulator_is_supported_voltage
This definition is missing when CONFIG_REGULATOR is not defined. This causes compiler errors when compiling sdhci.c. This can be worked around by adding #ifdef CONFIG_REGULATOR .. #endif but since other definitions are there we have defined the missing definition Signed-off-by: Philip Rakity <prakity@marvell.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/consumer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index 9ff29ef317c2..da339fd8c755 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -294,6 +294,12 @@ static inline int regulator_get_voltage(struct regulator *regulator)
294 return -EINVAL; 294 return -EINVAL;
295} 295}
296 296
297static inline int regulator_is_supported_voltage(struct regulator *regulator,
298 int min_uV, int max_uV)
299{
300 return 0;
301}
302
297static inline int regulator_set_current_limit(struct regulator *regulator, 303static inline int regulator_set_current_limit(struct regulator *regulator,
298 int min_uA, int max_uA) 304 int min_uA, int max_uA)
299{ 305{