drivers: clock: stm32f1,f3: fix adc prescaler

Fix a compilation error occurring when a prescaler was set for ADC on F1
and F3 family.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
This commit is contained in:
Guillaume Gautier 2024-05-28 16:14:09 +02:00 committed by Alberto Escolar
commit 425452bddc
4 changed files with 26 additions and 28 deletions

View file

@ -31,6 +31,7 @@ properties:
ADC 1 and 2 prescaler
- 0: Disables the clock so the ADC can use AHB clock (synchronous mode)
- Other values n: The ADC can use the PLL clock divided by n
On STM32F37x, only 2/4/6/8 are allowed.
adc34-prescaler:
type: int