Browse Source

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>
pull/89716/merge
Furkan Akkiz 1 year ago committed by Benjamin Cabé
parent
commit
85ef719eb2
  1. 2
      drivers/dma/dma_max32.c

2
drivers/dma/dma_max32.c

@ -135,7 +135,7 @@ static int max32_dma_config(const struct device *dev, uint32_t channel, struct d @@ -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;
}

Loading…
Cancel
Save