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

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

authored by

Allen Pais and committed by
Vinod Koul
bbc61540 6afe8778

+3 -3
+3 -3
drivers/dma/nbpfaxi.c
··· 1113 1113 return dchan; 1114 1114 } 1115 1115 1116 - static void nbpf_chan_tasklet(unsigned long data) 1116 + static void nbpf_chan_tasklet(struct tasklet_struct *t) 1117 1117 { 1118 - struct nbpf_channel *chan = (struct nbpf_channel *)data; 1118 + struct nbpf_channel *chan = from_tasklet(chan, t, tasklet); 1119 1119 struct nbpf_desc *desc, *tmp; 1120 1120 struct dmaengine_desc_callback cb; 1121 1121 ··· 1260 1260 1261 1261 snprintf(chan->name, sizeof(chan->name), "nbpf %d", n); 1262 1262 1263 - tasklet_init(&chan->tasklet, nbpf_chan_tasklet, (unsigned long)chan); 1263 + tasklet_setup(&chan->tasklet, nbpf_chan_tasklet); 1264 1264 ret = devm_request_irq(dma_dev->dev, chan->irq, 1265 1265 nbpf_chan_irq, IRQF_SHARED, 1266 1266 chan->name, chan);