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 <hasanfurkan.akkiz@analog.com>
This commit is contained in:
Furkan Akkiz 2024-05-14 17:44:07 +03:00 committed by Benjamin Cabé
commit 85ef719eb2

View file

@ -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;
}