regulator: Add missing statics and inlines for stub functions
authorMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 18:07:11 +0000 (19:07 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 29 Jul 2014 11:59:48 +0000 (12:59 +0100)
So we don't get multiple definitions.

Signed-off-by: Mark Brown <broonie@linaro.org>
include/linux/regulator/consumer.h

index 0b1c8d0..d9e6c20 100644 (file)
@@ -460,20 +460,20 @@ static inline int regulator_allow_bypass(struct regulator *regulator,
        return 0;
 }
 
-struct regmap *regulator_get_regmap(struct regulator *regulator)
+static inline struct regmap *regulator_get_regmap(struct regulator *regulator)
 {
        return ERR_PTR(-EOPNOTSUPP);
 }
 
-int regulator_get_hardware_vsel_register(struct regulator *regulator,
-                                        unsigned *vsel_reg,
-                                        unsigned *vsel_mask)
+static inline int regulator_get_hardware_vsel_register(struct regulator *regulator,
+                                                      unsigned *vsel_reg,
+                                                      unsigned *vsel_mask)
 {
        return -EOPNOTSUPP;
 }
 
-int regulator_list_hardware_vsel(struct regulator *regulator,
-                                unsigned selector)
+static inline int regulator_list_hardware_vsel(struct regulator *regulator,
+                                              unsigned selector)
 {
        return -EOPNOTSUPP;
 }