From 05962fc1cd2b085368a4db02b061b019b0cad60b Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Thu, 23 Nov 2023 10:22:14 +0100 Subject: [PATCH] [review] drivers: regulator: print regulator tree summary Stub regulator_print_tree() when CFG_DRIVERS_REGULATOR is disabled. Signed-off-by: Etienne Carriere --- core/include/drivers/regulator.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/include/drivers/regulator.h b/core/include/drivers/regulator.h index 2ffacf82dc8..23d53d55dc8 100644 --- a/core/include/drivers/regulator.h +++ b/core/include/drivers/regulator.h @@ -317,6 +317,11 @@ TEE_Result regulator_supported_voltages(struct regulator *regulator, struct regulator_voltages **voltages); /* Print current regulator tree summary to output console (info trace level) */ +#ifdef CFG_DRIVERS_REGULATOR void regulator_print_tree(void); - +#else +static inline void regulator_print_tree(void) +{ +} +#endif /* CFG_DRIVERS_REGULATOR */ #endif /* __DRIVERS_REGULATOR_H */