From bc37d4105187cccccd4e68e10cf110ae8642cdbc Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Wed, 2 Mar 2022 14:12:09 +0100 Subject: [PATCH] drivers/clock_control: stm32h7: Fixes on function declarations Fix minor issues on some functions headers. Signed-off-by: Erwan Gouriou --- drivers/clock_control/clock_stm32_ll_h7.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/clock_control/clock_stm32_ll_h7.c b/drivers/clock_control/clock_stm32_ll_h7.c index 8abf2d75dbf..db17bdd6c61 100644 --- a/drivers/clock_control/clock_stm32_ll_h7.c +++ b/drivers/clock_control/clock_stm32_ll_h7.c @@ -158,9 +158,8 @@ static uint32_t get_bus_clock(uint32_t clock, uint32_t prescaler) return clock / prescaler; } -#if !defined(CONFIG_CPU_CORTEX_M4) - -static inline uint32_t get_pllout_frequency(uint32_t pllsrc_freq, +__unused +static uint32_t get_pllout_frequency(uint32_t pllsrc_freq, int pllm_div, int plln_mul, int pllout_div) @@ -171,7 +170,8 @@ static inline uint32_t get_pllout_frequency(uint32_t pllsrc_freq, (pllm_div * pllout_div); } -static inline uint32_t get_pllsrc_frequency(void) +__unused +static uint32_t get_pllsrc_frequency(void) { switch (LL_RCC_PLL_GetSource()) { case LL_RCC_PLLSOURCE_HSI: @@ -186,6 +186,7 @@ static inline uint32_t get_pllsrc_frequency(void) } } +__unused static uint32_t get_hclk_frequency(void) { uint32_t sysclk = 0; @@ -214,6 +215,8 @@ static uint32_t get_hclk_frequency(void) return get_bus_clock(sysclk, STM32_HPRE); } +#if !defined(CONFIG_CPU_CORTEX_M4) + static int32_t prepare_regulator_voltage_scale(void) { /* Apply system power supply configuration */