regulator: add missing prototype for regulator_is_supported_voltage
authorPhilip Rakity <prakity@nvidia.com>
Tue, 20 Nov 2012 17:07:41 +0000 (18:07 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 21 Nov 2012 10:03:12 +0000 (19:03 +0900)
avoids needs for CONFIG_REGULATOR in sdhci.c

Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/linux/regulator/consumer.h

index c43cd3556b1f5b789bae79de586f7e85a4cafacc..4e3ec91bc639e1c1d327f2645955f86d0d17f63f 100644 (file)
@@ -358,6 +358,10 @@ static inline void regulator_set_drvdata(struct regulator *regulator,
 {
 }
 
+static inline int regulator_count_voltages(struct regulator *regulator)
+{
+       return 0;
+}
 #endif
 
 static inline int regulator_set_voltage_tol(struct regulator *regulator,