mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: Define full constraints function with REGULATOR disabled
@ 2009-07-09 14:44 Mark Brown
  2009-07-10 16:00 ` Liam Girdwood
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2009-07-09 14:44 UTC (permalink / raw)
  To: Liam Girdwood; +Cc: Haojian Zhuang, linux-kernel, Mark Brown

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>
---
 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 9328090..73a88f6 100644
--- a/include/linux/regulator/machine.h
+++ b/include/linux/regulator/machine.h
@@ -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
-- 
1.6.3.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] regulator: Define full constraints function with REGULATOR disabled
  2009-07-09 14:44 [PATCH] regulator: Define full constraints function with REGULATOR disabled Mark Brown
@ 2009-07-10 16:00 ` Liam Girdwood
  0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2009-07-10 16:00 UTC (permalink / raw)
  To: Mark Brown; +Cc: Haojian Zhuang, linux-kernel

On Thu, 2009-07-09 at 15:44 +0100, Mark Brown wrote:
> 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>
> ---
>  include/linux/regulator/machine.h |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 

Applied.

Thanks

Liam


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-10 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 14:44 [PATCH] regulator: Define full constraints function with REGULATOR disabled Mark Brown
2009-07-10 16:00 ` Liam Girdwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®