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:
parent
135b5ce860
commit
020dab824c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue