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

dmaengine: tegra20: 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-28-allen.lkml@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Allen Pais and committed by
Vinod Koul
86fc54fa aaf9d3d6

+3 -4
+3 -4
drivers/dma/tegra20-apb-dma.c
··· 644 644 } 645 645 } 646 646 647 - static void tegra_dma_tasklet(unsigned long data) 647 + static void tegra_dma_tasklet(struct tasklet_struct *t) 648 648 { 649 - struct tegra_dma_channel *tdc = (struct tegra_dma_channel *)data; 649 + struct tegra_dma_channel *tdc = from_tasklet(tdc, t, tasklet); 650 650 struct dmaengine_desc_callback cb; 651 651 struct tegra_dma_desc *dma_desc; 652 652 unsigned int cb_count; ··· 1523 1523 tdc->id = i; 1524 1524 tdc->slave_id = TEGRA_APBDMA_SLAVE_ID_INVALID; 1525 1525 1526 - tasklet_init(&tdc->tasklet, tegra_dma_tasklet, 1527 - (unsigned long)tdc); 1526 + tasklet_setup(&tdc->tasklet, tegra_dma_tasklet); 1528 1527 spin_lock_init(&tdc->lock); 1529 1528 init_waitqueue_head(&tdc->wq); 1530 1529