api: dma: Pass the dma device pointer as parameter to callback

Normalize callback like other APIs.
This clarifies the callback usage. It will also help to switch all
device instance to constants.

Fixes #26923

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2020-07-08 21:16:34 +02:00 committed by Carles Cufí
commit 020dab824c

View file

@ -162,8 +162,8 @@ struct dma_config {
uint32_t block_count;
struct dma_block_config *head_block;
void *callback_arg;
void (*dma_callback)(void *callback_arg, uint32_t channel,
int error_code);
void (*dma_callback)(struct device *dev, void *callback_arg,
uint32_t channel, int error_code);
};
/**