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

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

authored by

Allen Pais and committed by
Vinod Koul
169bb74f 52fcf656

+3 -3
+3 -3
drivers/dma/dw/core.c
··· 463 463 dwc_descriptor_complete(dwc, bad_desc, true); 464 464 } 465 465 466 - static void dw_dma_tasklet(unsigned long data) 466 + static void dw_dma_tasklet(struct tasklet_struct *t) 467 467 { 468 - struct dw_dma *dw = (struct dw_dma *)data; 468 + struct dw_dma *dw = from_tasklet(dw, t, tasklet); 469 469 struct dw_dma_chan *dwc; 470 470 u32 status_xfer; 471 471 u32 status_err; ··· 1142 1142 goto err_pdata; 1143 1143 } 1144 1144 1145 - tasklet_init(&dw->tasklet, dw_dma_tasklet, (unsigned long)dw); 1145 + tasklet_setup(&dw->tasklet, dw_dma_tasklet); 1146 1146 1147 1147 err = request_irq(chip->irq, dw_dma_interrupt, IRQF_SHARED, 1148 1148 dw->name, dw);