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

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

authored by

Allen Pais and committed by
Vinod Koul
8a536883 00c4747a

+3 -3
+3 -3
drivers/dma/sa11x0-dma.c
··· 323 323 } 324 324 } 325 325 326 - static void sa11x0_dma_tasklet(unsigned long arg) 326 + static void sa11x0_dma_tasklet(struct tasklet_struct *t) 327 327 { 328 - struct sa11x0_dma_dev *d = (struct sa11x0_dma_dev *)arg; 328 + struct sa11x0_dma_dev *d = from_tasklet(d, t, task); 329 329 struct sa11x0_dma_phy *p; 330 330 struct sa11x0_dma_chan *c; 331 331 unsigned pch, pch_alloc = 0; ··· 928 928 goto err_ioremap; 929 929 } 930 930 931 - tasklet_init(&d->task, sa11x0_dma_tasklet, (unsigned long)d); 931 + tasklet_setup(&d->task, sa11x0_dma_tasklet); 932 932 933 933 for (i = 0; i < NR_PHY_CHAN; i++) { 934 934 struct sa11x0_dma_phy *p = &d->phy[i];