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

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

authored by

Allen Pais and committed by
Vinod Koul
6afe8778 34ca9a53

+3 -4
+3 -4
drivers/dma/mxs-dma.c
··· 319 319 return dma_cookie_assign(tx); 320 320 } 321 321 322 - static void mxs_dma_tasklet(unsigned long data) 322 + static void mxs_dma_tasklet(struct tasklet_struct *t) 323 323 { 324 - struct mxs_dma_chan *mxs_chan = (struct mxs_dma_chan *) data; 324 + struct mxs_dma_chan *mxs_chan = from_tasklet(mxs_chan, t, tasklet); 325 325 326 326 dmaengine_desc_get_callback_invoke(&mxs_chan->desc, NULL); 327 327 } ··· 811 811 mxs_chan->chan.device = &mxs_dma->dma_device; 812 812 dma_cookie_init(&mxs_chan->chan); 813 813 814 - tasklet_init(&mxs_chan->tasklet, mxs_dma_tasklet, 815 - (unsigned long) mxs_chan); 814 + tasklet_setup(&mxs_chan->tasklet, mxs_dma_tasklet); 816 815 817 816 818 817 /* Add the channel to mxs_chan list */