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:
parent
800e6c3a28
commit
3a3f10c06e
8 changed files with 8 additions and 23 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue