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

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

authored by

Allen Pais and committed by
Vinod Koul
81259685 77a4f4f7

+3 -3
+3 -3
drivers/dma/mpc512x_dma.c
··· 414 414 } 415 415 416 416 /* DMA Tasklet */ 417 - static void mpc_dma_tasklet(unsigned long data) 417 + static void mpc_dma_tasklet(struct tasklet_struct *t) 418 418 { 419 - struct mpc_dma *mdma = (void *)data; 419 + struct mpc_dma *mdma = from_tasklet(mdma, t, tasklet); 420 420 unsigned long flags; 421 421 uint es; 422 422 ··· 1009 1009 list_add_tail(&mchan->chan.device_node, &dma->channels); 1010 1010 } 1011 1011 1012 - tasklet_init(&mdma->tasklet, mpc_dma_tasklet, (unsigned long)mdma); 1012 + tasklet_setup(&mdma->tasklet, mpc_dma_tasklet); 1013 1013 1014 1014 /* 1015 1015 * Configure DMA Engine: