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

dmaengine: sun6i: 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>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20200831103542.305571-27-allen.lkml@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Allen Pais and committed by
Vinod Koul
aaf9d3d6 b1880c90

+3 -3
+3 -3
drivers/dma/sun6i-dma.c
··· 467 467 return 0; 468 468 } 469 469 470 - static void sun6i_dma_tasklet(unsigned long data) 470 + static void sun6i_dma_tasklet(struct tasklet_struct *t) 471 471 { 472 - struct sun6i_dma_dev *sdev = (struct sun6i_dma_dev *)data; 472 + struct sun6i_dma_dev *sdev = from_tasklet(sdev, t, task); 473 473 struct sun6i_vchan *vchan; 474 474 struct sun6i_pchan *pchan; 475 475 unsigned int pchan_alloc = 0; ··· 1343 1343 if (!sdc->vchans) 1344 1344 return -ENOMEM; 1345 1345 1346 - tasklet_init(&sdc->task, sun6i_dma_tasklet, (unsigned long)sdc); 1346 + tasklet_setup(&sdc->task, sun6i_dma_tasklet); 1347 1347 1348 1348 for (i = 0; i < sdc->num_pchans; i++) { 1349 1349 struct sun6i_pchan *pchan = &sdc->pchans[i];