Skip to content

Commit a09fc06

Browse files
Alain Volmatkartben
authored andcommitted
dma: stm32: dma_stm32_slot_to_channel is only applicable on STM32Fx
The dma_stm32_slot_to_channel function is only applicable on the STM32Fx series since the LL_DMA_CHANNEL_x macros only exist for those platforms among the one based on st,stm32-dma-v1. While checking for !defined(CONFIG_DMAMUX_STM32) is ok to enable this on STM32Fx, it prevents to disable dmamux on other platforms since required symbols do not exist. Signed-off-by: Alain Volmat <[email protected]>
1 parent 002d954 commit a09fc06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/dma_stm32_v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ uint32_t dma_stm32_id_to_stream(uint32_t id)
3535
return stream_nr[id];
3636
}
3737

38-
#if !defined(CONFIG_DMAMUX_STM32)
38+
#if !defined(CONFIG_SOC_SERIES_STM32H7X) && !defined(CONFIG_SOC_SERIES_STM32MP1X)
3939
uint32_t dma_stm32_slot_to_channel(uint32_t slot)
4040
{
4141
static const uint32_t channel_nr[] = {

0 commit comments

Comments
 (0)