Skip to content

Commit 88735a4

Browse files
gautierg-stcfriedt
authored andcommitted
drivers: adc: stm32: remove useless check of internal regulator state
Disabling the internal regulator is immediate so there is no need to check the state of the Enable bit in the register. Signed-off-by: Guillaume Gautier <[email protected]>
1 parent 67906ce commit 88735a4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/adc/adc_stm32.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,10 +1722,7 @@ static int adc_stm32_suspend_setup(const struct device *dev)
17221722
#if ANY_ADC_INTERNAL_REGULATOR_TYPE_IS(INTERNAL_REGULATOR_STARTUP_SW_DELAY) || \
17231723
ANY_ADC_INTERNAL_REGULATOR_TYPE_IS(INTERNAL_REGULATOR_STARTUP_HW_STATUS)
17241724
if (config->internal_regulator != INTERNAL_REGULATOR_NONE) {
1725-
/* Disable ADC internal voltage regulator */
17261725
LL_ADC_DisableInternalRegulator(adc);
1727-
while (LL_ADC_IsInternalRegulatorEnabled(adc) == 1U) {
1728-
}
17291726
}
17301727
#endif /* INTERNAL_REGULATOR_STARTUP_SW_DELAY || INTERNAL_REGULATOR_STARTUP_HW_STATUS */
17311728

0 commit comments

Comments
 (0)