Skip to content

Commit

Permalink
[review] drivers: regulator: print regulator tree summary
Browse files Browse the repository at this point in the history
Stub regulator_print_tree() when CFG_DRIVERS_REGULATOR is disabled.

Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Nov 23, 2023
1 parent 5f63161 commit 05962fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/include/drivers/regulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 05962fc

Please sign in to comment.