linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Allen Pais <allen.cryptic@gmail.com>
To: perex@perex.cz, tiwai@suse.com, clemens@ladisch.de,
	o-takashi@sakamocchi.jp, timur@kernel.org,
	nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com
Cc: keescook@chromium.org, alsa-devel@alsa-project.org,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
	Allen Pais <allen.lkml@gmail.com>,
	Romain Perier <romain.perier@gmail.com>
Subject: [PATCH 06/10] sound/soc: fsl_esai: convert tasklets to use new tasklet_setup() API
Date: Mon, 17 Aug 2020 14:26:59 +0530	[thread overview]
Message-ID: <20200817085703.25732-7-allen.cryptic@gmail.com> (raw)
In-Reply-To: <20200817085703.25732-1-allen.cryptic@gmail.com>

From: Allen Pais <allen.lkml@gmail.com>

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>
---
 sound/soc/fsl/fsl_esai.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c
index 4ae36099ae82..79b861afd986 100644
--- a/sound/soc/fsl/fsl_esai.c
+++ b/sound/soc/fsl/fsl_esai.c
@@ -708,9 +708,9 @@ static void fsl_esai_trigger_stop(struct fsl_esai *esai_priv, bool tx)
 			   ESAI_xFCR_xFR, 0);
 }
 
-static void fsl_esai_hw_reset(unsigned long arg)
+static void fsl_esai_hw_reset(struct tasklet_struct *t)
 {
-	struct fsl_esai *esai_priv = (struct fsl_esai *)arg;
+	struct fsl_esai *esai_priv = from_tasklet(esai_priv, t, task);
 	bool tx = true, rx = false, enabled[2];
 	unsigned long lock_flags;
 	u32 tfcr, rfcr;
@@ -1070,8 +1070,7 @@ static int fsl_esai_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	tasklet_init(&esai_priv->task, fsl_esai_hw_reset,
-		     (unsigned long)esai_priv);
+	tasklet_setup(&esai_priv->task, fsl_esai_hw_reset);
 
 	pm_runtime_enable(&pdev->dev);
 
-- 
2.17.1


  parent reply	other threads:[~2020-08-17  8:57 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-17  8:56 [PATCH 00/10] sound: convert tasklets to use new tasklet_setup() Allen Pais
2020-08-17  8:56 ` [PATCH 01/10] sound: core: convert tasklets to use new tasklet_setup() API Allen Pais
2020-08-17  8:56 ` [PATCH 02/10] sound: firewire: " Allen Pais
2020-08-17  8:56 ` [PATCH 03/10] sound: asihpi: " Allen Pais
2020-08-17  8:56 ` [PATCH 04/10] sound: riptide: " Allen Pais
2020-08-17  8:56 ` [PATCH 05/10] sound: rm9652: " Allen Pais
2020-08-17  8:56 ` Allen Pais [this message]
2020-08-17  8:57 ` [PATCH 07/10] sound/soc: sh: " Allen Pais
2020-08-17  8:57 ` [PATCH 08/10] sound/soc: txx9: " Allen Pais
2020-08-17  8:57 ` [PATCH 09/10] sound: midi: " Allen Pais
2020-08-17  8:57 ` [PATCH 10/10] sound: ua101: " Allen Pais
2020-08-17  9:08 ` [PATCH 00/10] sound: convert tasklets to use new tasklet_setup() Takashi Iwai
2020-08-17  9:18   ` Allen Pais
2020-08-17  9:43     ` Takashi Iwai
2020-08-18  9:31       ` Allen
2020-08-18 10:25 ` Takashi Iwai
2020-08-18 10:44   ` Mark Brown
2020-08-18 10:59     ` Takashi Iwai
2020-08-19 10:51     ` Allen
2020-08-19 11:16       ` Mark Brown
2020-08-19 11:28         ` Takashi Iwai
2020-09-01 10:04           ` Allen
2020-09-01 10:09             ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200817085703.25732-7-allen.cryptic@gmail.com \
    --to=allen.cryptic@gmail.com \
    --cc=Xiubo.Lee@gmail.com \
    --cc=allen.lkml@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=nicoleotsuka@gmail.com \
    --cc=o-takashi@sakamocchi.jp \
    --cc=perex@perex.cz \
    --cc=romain.perier@gmail.com \
    --cc=timur@kernel.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).