drivers: dma: Align all drivers using dma_callback_t type

No need to re-declare such signature anymore.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2020-07-29 08:55:43 +02:00 committed by Carles Cufí
commit 3a3f10c06e
8 changed files with 8 additions and 23 deletions

View file

@ -15,11 +15,8 @@ LOG_MODULE_REGISTER(dma_sam0, CONFIG_DMA_LOG_LEVEL);
#define DMA_REGS ((Dmac *)DT_INST_REG_ADDR(0))
typedef void (*dma_callback)(struct device *dev, void *callback_arg,
uint32_t channel, int error_code);
struct dma_sam0_channel {
dma_callback cb;
dma_callback_t cb;
void *cb_arg;
};