Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: ep93xx: convert tasklets to use new tasklet_setup() API

In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Link: https://lore.kernel.org/r/20200831103542.305571-7-allen.lkml@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Allen Pais and committed by
Vinod Koul
95fbf163 169bb74f

+3 -4
+3 -4
drivers/dma/ep93xx_dma.c
··· 745 745 spin_unlock_irqrestore(&edmac->lock, flags); 746 746 } 747 747 748 - static void ep93xx_dma_tasklet(unsigned long data) 748 + static void ep93xx_dma_tasklet(struct tasklet_struct *t) 749 749 { 750 - struct ep93xx_dma_chan *edmac = (struct ep93xx_dma_chan *)data; 750 + struct ep93xx_dma_chan *edmac = from_tasklet(edmac, t, tasklet); 751 751 struct ep93xx_dma_desc *desc, *d; 752 752 struct dmaengine_desc_callback cb; 753 753 LIST_HEAD(list); ··· 1353 1353 INIT_LIST_HEAD(&edmac->active); 1354 1354 INIT_LIST_HEAD(&edmac->queue); 1355 1355 INIT_LIST_HEAD(&edmac->free_list); 1356 - tasklet_init(&edmac->tasklet, ep93xx_dma_tasklet, 1357 - (unsigned long)edmac); 1356 + tasklet_setup(&edmac->tasklet, ep93xx_dma_tasklet); 1358 1357 1359 1358 list_add_tail(&edmac->chan.device_node, 1360 1359 &dma_dev->channels);