Skip to content

Commit

Permalink
drivers: dma: stm32 dmamux: fix for c0 hal update
Browse files Browse the repository at this point in the history
Fix the DMAMUX driver for the STM32C0 HAL update. Typedef used in function
is now const.

Signed-off-by: Guillaume Gautier <[email protected]>
  • Loading branch information
gautierg-st committed Oct 3, 2024
1 parent 17a1d87 commit 1f85e60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/dma/dmamux_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ uint32_t table_ll_channel[] = {
LISTIFY(DT_INST_PROP(0, dma_channels), DMAMUX_CHANNEL, (,))
};

#if !defined(CONFIG_SOC_SERIES_STM32G0X)
#if !defined(CONFIG_SOC_SERIES_STM32G0X) && \
!defined(CONFIG_SOC_SERIES_STM32C0X)
#define dmamux_channel_typedef DMAMUX_Channel_TypeDef

Check notice on line 75 in drivers/dma/dmamux_stm32.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

drivers/dma/dmamux_stm32.c:75 -#if !defined(CONFIG_SOC_SERIES_STM32G0X) && \ - !defined(CONFIG_SOC_SERIES_STM32C0X) +#if !defined(CONFIG_SOC_SERIES_STM32G0X) && !defined(CONFIG_SOC_SERIES_STM32C0X)
#else
#define dmamux_channel_typedef const DMAMUX_Channel_TypeDef
Expand Down

0 comments on commit 1f85e60

Please sign in to comment.