Commit ea0364c0 authored by Allen Pais's avatar Allen Pais Committed by Takashi Iwai

ASoC: siu: 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: default avatarRomain Perier <romain.perier@gmail.com>
Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200902040221.354941-8-allen.lkml@gmail.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b07e4a3f
...@@ -198,9 +198,9 @@ static int siu_pcm_rd_set(struct siu_port *port_info, ...@@ -198,9 +198,9 @@ static int siu_pcm_rd_set(struct siu_port *port_info,
return 0; return 0;
} }
static void siu_io_tasklet(unsigned long data) static void siu_io_tasklet(struct tasklet_struct *t)
{ {
struct siu_stream *siu_stream = (struct siu_stream *)data; struct siu_stream *siu_stream = from_tasklet(siu_stream, t, tasklet);
struct snd_pcm_substream *substream = siu_stream->substream; struct snd_pcm_substream *substream = siu_stream->substream;
struct device *dev = substream->pcm->card->dev; struct device *dev = substream->pcm->card->dev;
struct snd_pcm_runtime *rt = substream->runtime; struct snd_pcm_runtime *rt = substream->runtime;
...@@ -520,10 +520,8 @@ static int siu_pcm_new(struct snd_soc_component *component, ...@@ -520,10 +520,8 @@ static int siu_pcm_new(struct snd_soc_component *component,
(*port_info)->pcm = pcm; (*port_info)->pcm = pcm;
/* IO tasklets */ /* IO tasklets */
tasklet_init(&(*port_info)->playback.tasklet, siu_io_tasklet, tasklet_setup(&(*port_info)->playback.tasklet, siu_io_tasklet);
(unsigned long)&(*port_info)->playback); tasklet_setup(&(*port_info)->capture.tasklet, siu_io_tasklet);
tasklet_init(&(*port_info)->capture.tasklet, siu_io_tasklet,
(unsigned long)&(*port_info)->capture);
} }
dev_info(card->dev, "SuperH SIU driver initialized.\n"); dev_info(card->dev, "SuperH SIU driver initialized.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment