Skip to contentSkip to conversation

regulator: Define full constraints function with REGULATOR disabled

PATCH Applied Mark Brown 2 participants 2 messages Jul 9, 2009 – Jul 10, 2009 Voltage and current regulator framework

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 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 <[email protected]>.

---
 include/linux/regulator/machine.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
include/linux/regulator/machine.h +6 -0
index 9328090..73a88f6 100644
@@ -171,6 +171,12 @@ struct regulator_init_data {
 
 int regulator_suspend_prepare(suspend_state_t state);
 
+#ifdef CONFIG_REGULATOR
 void regulator_has_full_constraints(void);
+#else
+static inline void regulator_has_full_constraints(void)
+{
+}
+#endif
 
 #endif
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 9 lines · Mark Brown

This allows machine drivers to build without ifdefs if they have full constraints. Suggested by machine drivers contributed by Haojian Zhuang <[email protected]>.

---
 include/linux/regulator/machine.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Applied.

Thanks

Liam