Commit ad77b35abb53481bc4cd7237ceae14af7275a50d
Committed by
Takashi Iwai
1 parent
ea0364c01e
ASoC: txx9: 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> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20200902040221.354941-9-allen.lkml@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff
sound/soc/txx9/txx9aclc.c
... | ... | @@ -134,9 +134,9 @@ |
134 | 134 | |
135 | 135 | #define NR_DMA_CHAIN 2 |
136 | 136 | |
137 | -static void txx9aclc_dma_tasklet(unsigned long data) | |
137 | +static void txx9aclc_dma_tasklet(struct tasklet_struct *t) | |
138 | 138 | { |
139 | - struct txx9aclc_dmadata *dmadata = (struct txx9aclc_dmadata *)data; | |
139 | + struct txx9aclc_dmadata *dmadata = from_tasklet(dmadata, t, tasklet); | |
140 | 140 | struct dma_chan *chan = dmadata->dma_chan; |
141 | 141 | struct dma_async_tx_descriptor *desc; |
142 | 142 | struct snd_pcm_substream *substream = dmadata->substream; |
... | ... | @@ -352,8 +352,7 @@ |
352 | 352 | "playback" : "capture"); |
353 | 353 | return -EBUSY; |
354 | 354 | } |
355 | - tasklet_init(&dmadata->tasklet, txx9aclc_dma_tasklet, | |
356 | - (unsigned long)dmadata); | |
355 | + tasklet_setup(&dmadata->tasklet, txx9aclc_dma_tasklet); | |
357 | 356 | return 0; |
358 | 357 | } |
359 | 358 |