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:
Tomasz Bursztyka 2020-07-29 09:02:03 +02:00 committed by Carles Cufí
commit 1580768fd3
16 changed files with 44 additions and 44 deletions

View file

@ -17,7 +17,7 @@ LOG_MODULE_REGISTER(dma_sam0, CONFIG_DMA_LOG_LEVEL);
struct dma_sam0_channel {
dma_callback_t cb;
void *cb_arg;
void *user_data;
};
struct dma_sam0_data {
@ -47,12 +47,12 @@ static void dma_sam0_isr(void *arg)
if (pend & DMAC_INTPEND_TERR) {
if (chdata->cb) {
chdata->cb(dev, chdata->cb_arg,
chdata->cb(dev, chdata->user_data,
channel, -DMAC_INTPEND_TERR);
}
} else if (pend & DMAC_INTPEND_TCMPL) {
if (chdata->cb) {
chdata->cb(dev, chdata->cb_arg, channel, 0);
chdata->cb(dev, chdata->user_data, channel, 0);
}
}
@ -249,7 +249,7 @@ static int dma_sam0_config(struct device *dev, uint32_t channel,
channel_control = &data->channels[channel];
channel_control->cb = config->dma_callback;
channel_control->cb_arg = config->callback_arg;
channel_control->user_data = config->user_data;
LOG_DBG("Configured channel %d for %08X to %08X (%u)",
channel,