Skip to content

Commit 003ee34

Browse files
wojciechslenskacarlescufi
authored andcommitted
drivers: adc: stm32: removed duplicated code
The same code exist few lines above, this is probably merge error. Signed-off-by: Wojciech Slenska <[email protected]>
1 parent 8c2f5d3 commit 003ee34

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/adc/adc_stm32.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -736,13 +736,6 @@ static int start_read(const struct device *dev,
736736
LL_ADC_SetChannelPreselection(adc, channel);
737737
}
738738
#endif
739-
#if defined(CONFIG_SOC_SERIES_STM32U5X)
740-
/*
741-
* Each channel in the sequence must be previously enabled in PCSEL.
742-
* This register controls the analog switch integrated in the IO level.
743-
*/
744-
LL_ADC_SetChannelPreselection(adc, channel);
745-
#endif
746739
#if defined(CONFIG_SOC_SERIES_STM32F0X) || \
747740
defined(CONFIG_SOC_SERIES_STM32L0X)
748741
LL_ADC_REG_SetSequencerChannels(adc, channel);

0 commit comments

Comments
 (0)