From: Mark Brown Date: Thu, 9 Jul 2009 14:44:31 +0000 (+0100) Subject: regulator: Define full constraints function with REGULATOR disabled X-Git-Tag: v2.6.32-rc1~164^2~34 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9c19bc0444490e76197f47316c649590dc6f10a4;p=karo-tx-linux.git 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 . Signed-off-by: Mark Brown Signed-off-by: Liam Girdwood --- 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 { 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