diff options
author | Mark Brown <broonie@linaro.org> | 2013-09-01 08:50:17 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-01 08:50:17 -0400 |
commit | f27a5fb424d4897edd3c7735ecf054ee57a5dbd0 (patch) | |
tree | a6bc4d322341ee1211657302f41614b52572b207 /include/linux/regulator | |
parent | 6979380d85fd9e1ff701021206b315fcd66b510e (diff) | |
parent | 9efdd27678ef5e22c27c230a08a211b702768f3a (diff) |
Merge remote-tracking branch 'regulator/topic/optional' into regulator-next
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/consumer.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 3610df8dd229..27be915caa96 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h | |||
@@ -137,6 +137,12 @@ struct regulator *__must_check devm_regulator_get(struct device *dev, | |||
137 | const char *id); | 137 | const char *id); |
138 | struct regulator *__must_check regulator_get_exclusive(struct device *dev, | 138 | struct regulator *__must_check regulator_get_exclusive(struct device *dev, |
139 | const char *id); | 139 | const char *id); |
140 | struct regulator *__must_check devm_regulator_get_exclusive(struct device *dev, | ||
141 | const char *id); | ||
142 | struct regulator *__must_check regulator_get_optional(struct device *dev, | ||
143 | const char *id); | ||
144 | struct regulator *__must_check devm_regulator_get_optional(struct device *dev, | ||
145 | const char *id); | ||
140 | void regulator_put(struct regulator *regulator); | 146 | void regulator_put(struct regulator *regulator); |
141 | void devm_regulator_put(struct regulator *regulator); | 147 | void devm_regulator_put(struct regulator *regulator); |
142 | 148 | ||
@@ -217,6 +223,25 @@ devm_regulator_get(struct device *dev, const char *id) | |||
217 | return NULL; | 223 | return NULL; |
218 | } | 224 | } |
219 | 225 | ||
226 | static inline struct regulator *__must_check | ||
227 | regulator_get_exclusive(struct device *dev, const char *id) | ||
228 | { | ||
229 | return NULL; | ||
230 | } | ||
231 | |||
232 | static inline struct regulator *__must_check | ||
233 | regulator_get_optional(struct device *dev, const char *id) | ||
234 | { | ||
235 | return NULL; | ||
236 | } | ||
237 | |||
238 | |||
239 | static inline struct regulator *__must_check | ||
240 | devm_regulator_get_optional(struct device *dev, const char *id) | ||
241 | { | ||
242 | return NULL; | ||
243 | } | ||
244 | |||
220 | static inline void regulator_put(struct regulator *regulator) | 245 | static inline void regulator_put(struct regulator *regulator) |
221 | { | 246 | { |
222 | } | 247 | } |