diff options
author | Allen Pais <allen.lkml@gmail.com> | 2020-08-17 10:31:44 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-08-29 08:11:19 +0200 |
commit | 4cf709c9aba062dd83909672e1c9a2c3b639ec80 (patch) | |
tree | df8992719896faa5718524f1577549420f6b9886 /drivers/media/pci/mantis/mantis_dma.c | |
parent | media: bt8xx: convert tasklets to use new tasklet_setup() API (diff) | |
download | linux-4cf709c9aba062dd83909672e1c9a2c3b639ec80.tar.xz linux-4cf709c9aba062dd83909672e1c9a2c3b639ec80.zip |
media: mantis: 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>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/pci/mantis/mantis_dma.c')
-rw-r--r-- | drivers/media/pci/mantis/mantis_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/mantis/mantis_dma.c b/drivers/media/pci/mantis/mantis_dma.c index affc5977387f..4df571ff272b 100644 --- a/drivers/media/pci/mantis/mantis_dma.c +++ b/drivers/media/pci/mantis/mantis_dma.c @@ -200,9 +200,9 @@ void mantis_dma_stop(struct mantis_pci *mantis) } -void mantis_dma_xfer(unsigned long data) +void mantis_dma_xfer(struct tasklet_struct *t) { - struct mantis_pci *mantis = (struct mantis_pci *) data; + struct mantis_pci *mantis = from_tasklet(mantis, t, tasklet); struct mantis_hwconfig *config = mantis->hwconfig; while (mantis->last_block != mantis->busy_block) { |