Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c19bc04 authored by Mark Brown's avatar Mark Brown Committed by Liam Girdwood
Browse files

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 561864e8
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -171,6 +171,12 @@ struct regulator_init_data {


int regulator_suspend_prepare(suspend_state_t state);
int regulator_suspend_prepare(suspend_state_t state);


#ifdef CONFIG_REGULATOR
void regulator_has_full_constraints(void);
void regulator_has_full_constraints(void);
#else
static inline void regulator_has_full_constraints(void)
{
}
#endif


#endif
#endif