Commit b07e4a3fb2473e3e55e209e2cd22295276de333a
Committed by
Takashi Iwai
1 parent
1a1575a151
ASoC: fsl_esai: 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-7-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/fsl/fsl_esai.c
... | ... | @@ -708,9 +708,9 @@ |
708 | 708 | ESAI_xFCR_xFR, 0); |
709 | 709 | } |
710 | 710 | |
711 | -static void fsl_esai_hw_reset(unsigned long arg) | |
711 | +static void fsl_esai_hw_reset(struct tasklet_struct *t) | |
712 | 712 | { |
713 | - struct fsl_esai *esai_priv = (struct fsl_esai *)arg; | |
713 | + struct fsl_esai *esai_priv = from_tasklet(esai_priv, t, task); | |
714 | 714 | bool tx = true, rx = false, enabled[2]; |
715 | 715 | unsigned long lock_flags; |
716 | 716 | u32 tfcr, rfcr; |
... | ... | @@ -1070,8 +1070,7 @@ |
1070 | 1070 | return ret; |
1071 | 1071 | } |
1072 | 1072 | |
1073 | - tasklet_init(&esai_priv->task, fsl_esai_hw_reset, | |
1074 | - (unsigned long)esai_priv); | |
1073 | + tasklet_setup(&esai_priv->task, fsl_esai_hw_reset); | |
1075 | 1074 | |
1076 | 1075 | pm_runtime_enable(&pdev->dev); |
1077 | 1076 |