regulator: add missing defintion regulator_is_supported_voltage
authorPhilip Rakity <prakity@marvell.com>
Sat, 30 Jun 2012 23:05:36 +0000 (16:05 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Jul 2012 18:10:19 +0000 (19:10 +0100)
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>
include/linux/regulator/consumer.h

index 9ff29ef317c24561d6f62d1b29e6e8ff1bb3e7e2..da339fd8c7559de74ad46dd3536f4b95981c89d8 100644 (file)
@@ -294,6 +294,12 @@ static inline int regulator_get_voltage(struct regulator *regulator)
        return -EINVAL;
 }
 
+static inline int regulator_is_supported_voltage(struct regulator *regulator,
+                                  int min_uV, int max_uV)
+{
+       return 0;
+}
+
 static inline int regulator_set_current_limit(struct regulator *regulator,
                                             int min_uA, int max_uA)
 {