drivers: dma: Align all drivers using user_data for callback
s/callback_arg/user_data Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
8144de1513
commit
1580768fd3
16 changed files with 44 additions and 44 deletions
|
@ -63,7 +63,7 @@ LOG_MODULE_REGISTER(LOG_DOMAIN);
|
|||
.source_burst_length = CAVS_I2S_DMA_BURST_SIZE,\
|
||||
.dest_burst_length = CAVS_I2S_DMA_BURST_SIZE,\
|
||||
.dma_callback = i2s_dma_tx_callback, \
|
||||
.callback_arg = I2S_DEVICE_OBJECT(i2s_id),\
|
||||
.user_data = I2S_DEVICE_OBJECT(i2s_id),\
|
||||
.complete_callback_en = 1, \
|
||||
.error_callback_en = 1, \
|
||||
.block_count = 1, \
|
||||
|
@ -79,7 +79,7 @@ LOG_MODULE_REGISTER(LOG_DOMAIN);
|
|||
.source_burst_length = CAVS_I2S_DMA_BURST_SIZE,\
|
||||
.dest_burst_length = CAVS_I2S_DMA_BURST_SIZE,\
|
||||
.dma_callback = i2s_dma_rx_callback,\
|
||||
.callback_arg = I2S_DEVICE_OBJECT(i2s_id),\
|
||||
.user_data = I2S_DEVICE_OBJECT(i2s_id),\
|
||||
.complete_callback_en = 1, \
|
||||
.error_callback_en = 1, \
|
||||
.block_count = 1, \
|
||||
|
|
|
@ -186,7 +186,7 @@ static int start_dma(struct device *dev_dma, uint32_t channel,
|
|||
}
|
||||
|
||||
/* This function is executed in the interrupt context */
|
||||
static void dma_rx_callback(struct device *dma_dev, void *callback_arg,
|
||||
static void dma_rx_callback(struct device *dma_dev, void *user_data,
|
||||
uint32_t channel, int status)
|
||||
{
|
||||
struct device *dev = get_dev_from_dma_channel(channel);
|
||||
|
@ -196,7 +196,7 @@ static void dma_rx_callback(struct device *dma_dev, void *callback_arg,
|
|||
struct stream *stream = &dev_data->rx;
|
||||
int ret;
|
||||
|
||||
ARG_UNUSED(callback_arg);
|
||||
ARG_UNUSED(user_data);
|
||||
__ASSERT_NO_MSG(stream->mem_block != NULL);
|
||||
|
||||
/* Stop reception if there was an error */
|
||||
|
@ -246,7 +246,7 @@ rx_disable:
|
|||
}
|
||||
|
||||
/* This function is executed in the interrupt context */
|
||||
static void dma_tx_callback(struct device *dma_dev, void *callback_arg,
|
||||
static void dma_tx_callback(struct device *dma_dev, void *user_data,
|
||||
uint32_t channel, int status)
|
||||
{
|
||||
struct device *dev = get_dev_from_dma_channel(channel);
|
||||
|
@ -257,7 +257,7 @@ static void dma_tx_callback(struct device *dma_dev, void *callback_arg,
|
|||
size_t mem_block_size;
|
||||
int ret;
|
||||
|
||||
ARG_UNUSED(callback_arg);
|
||||
ARG_UNUSED(user_data);
|
||||
__ASSERT_NO_MSG(stream->mem_block != NULL);
|
||||
|
||||
/* All block data sent */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue