summaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/siu.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-09-03 12:47:48 +0200
committerMark Brown <broonie@kernel.org>2020-09-09 15:42:09 +0100
commitd668e640d50a981e35ccf0c87d2742b0ad26fe0c (patch)
tree5763c16b2bf01ed8cb6106a355d10ea9a3f3ebd0 /sound/soc/sh/siu.h
parenta3d1f931ea4af3a9cae0098a957ce55293ce9ab6 (diff)
downloadlinux-d668e640d50a981e35ccf0c87d2742b0ad26fe0c.tar.gz
linux-d668e640d50a981e35ccf0c87d2742b0ad26fe0c.tar.bz2
linux-d668e640d50a981e35ccf0c87d2742b0ad26fe0c.zip
ASoC: sh: Replace tasklet with work
The tasklet is an old API that should be deprecated, usually can be converted to another decent API. In ASoC SH SIU driver, a tasklet is still used for offloading the hardware reset function. It can be achieved gracefully with a work queued, too. This patch replaces the tasklet usage in SH SIU driver with a simple work. The conversion is fairly straightforward. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20200903104749.21435-3-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/siu.h')
-rw-r--r--sound/soc/sh/siu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/siu.h b/sound/soc/sh/siu.h
index 63a508fdfe78..6201840f1bc0 100644
--- a/sound/soc/sh/siu.h
+++ b/sound/soc/sh/siu.h
@@ -96,7 +96,7 @@ struct siu_info {
};
struct siu_stream {
- struct tasklet_struct tasklet;
+ struct work_struct work;
struct snd_pcm_substream *substream;
snd_pcm_format_t format;
size_t buf_bytes;