diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-07-09 10:44:31 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-09-22 08:32:36 -0400 |
commit | 9c19bc0444490e76197f47316c649590dc6f10a4 (patch) | |
tree | 0329747b873bbf59bd70490513649f923cd99136 /include/linux/regulator | |
parent | 561864e8e3c263ff72bd0888aca80089027195ca (diff) |
regulator: Define full constraints function with REGULATOR disabled
This allows machine drivers to build without ifdefs if they have
full constraints. Suggested by machine drivers contributed by
Haojian Zhuang <haojian.zhuang@gmail.com>.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/machine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index 9328090eca20..73a88f6cbb1c 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h | |||
@@ -171,6 +171,12 @@ struct regulator_init_data { | |||
171 | 171 | ||
172 | int regulator_suspend_prepare(suspend_state_t state); | 172 | int regulator_suspend_prepare(suspend_state_t state); |
173 | 173 | ||
174 | #ifdef CONFIG_REGULATOR | ||
174 | void regulator_has_full_constraints(void); | 175 | void regulator_has_full_constraints(void); |
176 | #else | ||
177 | static inline void regulator_has_full_constraints(void) | ||
178 | { | ||
179 | } | ||
180 | #endif | ||
175 | 181 | ||
176 | #endif | 182 | #endif |