From 85ef719eb2f15a892511a04ed28f952cd1b9943f Mon Sep 17 00:00:00 2001 From: Furkan Akkiz Date: Tue, 14 May 2024 17:44:07 +0300 Subject: [PATCH] drivers: dma: Add a wrapper function to fix build error For MAX32657, 'MXC_DMA_EnableInt' function requires DMA instance and this causes build error. To fix this, created wrapper version of this function and update driver with it. Signed-off-by: Furkan Akkiz --- drivers/dma/dma_max32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dma_max32.c b/drivers/dma/dma_max32.c index dad7beea11e..8e6d8dfd123 100644 --- a/drivers/dma/dma_max32.c +++ b/drivers/dma/dma_max32.c @@ -135,7 +135,7 @@ static int max32_dma_config(const struct device *dev, uint32_t channel, struct d } /* Enable interrupts for the DMA peripheral */ - ret = MXC_DMA_EnableInt(ch); + ret = Wrap_MXC_DMA_EnableInt(cfg->regs, ch); if (ret != E_NO_ERROR) { return ret; }