From patchwork Thu Feb 4 15:18:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Renner Berthing X-Patchwork-Id: 12067529 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6865FC433E6 for ; Thu, 4 Feb 2021 15:20:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2FEA264E31 for ; Thu, 4 Feb 2021 15:20:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2FEA264E31 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=esmil.dk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=6h4mWCbcv2R/eRrdKwyBVVLNrbN/MOMRLT4dJ1xf9DY=; b=WmklKt6JdA6wNFLGHW3jr4snHd 5QiBJwv5arG1t1ob6lPBJwZ+aiCTpLYO/JFUXc1e+ByP4s32azB4nAHmLaC9o9By+W1lFPftmLf6+ HKEiE+47AnvHKIevQFvbU4NsVQ5WEAfBEVG2HhXQ044cnsEJdAvFYfcJM5uuC1vk6hw3HuqZ+0omg /HOgf3QiEeNEha8NkzvTnmHXxxZK8EYgHx8mQPeixZ9MbgYiS7W/IDTbutn9KPADLKd8aEozRQEOs nHoJzrZ2hN2PXt09yzaY9BPBBfWDvXV5l9aBQZbuxMr8d9iaFUgLML+PzrqdQ+mG4DHbHruXcD1fs 3sWkV5lQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7gPZ-00087a-0E; Thu, 04 Feb 2021 15:19:13 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7gPW-00086I-37 for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2021 15:19:11 +0000 Received: by mail-ej1-x62a.google.com with SMTP id r12so5913017ejb.9 for ; Thu, 04 Feb 2021 07:19:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=f6iWFEAYRCiS0CjNBB4+1Bs58fQyu4Ujqibyp6Xzunk=; b=g8JjPr8Og6MOjlid6yiCVvuvoywGwnt6hVt9ISTETXyI+cqnUNkwfKCWwunTCT9Iy+ k5U13HLU7smUIPdEYk6N2bBfLH4CgiHTN+jFupnKsldM+I5QaYaEVHwJjuCzJ/Uap6PI AUp4wtfFJZCndMJC1DOrzn7NElv4g77c0ZuLLyAH8tvNfw184ZUl0ybtfylYbSyVMWBy zb1BSAvAEB6xuRKDftnfiOF4LJ6z03NR7i+vu8dsx+zzHNxv4rHKBhtjn4mHrJa6qRc5 7TVvd3w0+q1zLYwPqui0FLPUCy3zjimIjBjI1pZPsuN78Mofy8kytbZ5Y2QuRexk0KIC WoqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=f6iWFEAYRCiS0CjNBB4+1Bs58fQyu4Ujqibyp6Xzunk=; b=P2yd1cKQKwikUSu2jAgXfv38Qqw9nv9MXnNLECJWsb/GeW50pEhJFPdEOOT3DQ1+WJ TiSHSZ0wwWCOegD1rbyhMjR6WcJS6Tc6AnuLyp7H0GxmT3GuchEVOhqX0VR86GXpRn/8 s0gFRFHdSWWWWKQpztI/pQvsaG+55cNZeAwi/H8Wu7U4xUweXZrEpGyJXcWU7cxJmf76 hS3/nmnaomPZ4gILcHPqO0sMMSKVR00HqFgAwjo4CQzeVgV6xf1uesqdHAwdv0BMVGIB /mCaKimIcpG7or2fq5rzJEMPteRthgRFVTQj1c4Ja/8ef7GmHof44DKHg2o+wo7DTRFO 9ITA== X-Gm-Message-State: AOAM533QOWI+F4U3tgFNrn9X74KZPh0FIycZgscDzy/bOZzJ2GKb2Eu4 9sL3Vqzqkw4oUPXjIKxcmmI= X-Google-Smtp-Source: ABdhPJz3Q4QIVCuc3EgJ+sTEXLy5VS0DEZI5CscTUcmPq9rkUY+3j7YXO3u+jmN1MedN4mHikAL2uw== X-Received: by 2002:a17:907:35ca:: with SMTP id ap10mr8479505ejc.451.1612451946279; Thu, 04 Feb 2021 07:19:06 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id a6sm2600001ejs.79.2021.02.04.07.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 07:19:05 -0800 (PST) From: Emil Renner Berthing To: linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 0/9] drivers: mmc: Update trivial tasklet_init() callers Date: Thu, 4 Feb 2021 16:18:38 +0100 Message-Id: <20210204151847.91353-1-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210204_101910_186080_BE622CCE X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Emil Renner Berthing , Alex Dubov , Aaro Koskinen , linux-kernel@vger.kernel.org, Ulf Hansson , Jaehoon Chung , Ludovic Desroches , Ben Dooks , Manuel Lauss , Pierre Ossman , Bruce Chang , Harald Welte , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This updates callers of tasklet_init() in drivers/mmc to the new API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") All changes are made by coccinelle using the following semantic patch: @ match @ type T; T *container; identifier tasklet; identifier callback; @@ tasklet_init(&container->tasklet, callback, (unsigned long)container); @ patch1 depends on match @ type match.T; identifier match.tasklet; identifier match.callback; identifier data; identifier container; @@ -void callback(unsigned long data) +void callback(struct tasklet_struct *t) { ... - T *container = \( (T *)data \| (void *)data \); + T *container = from_tasklet(container, t, tasklet); ... } @ patch2 depends on match @ type match.T; identifier match.tasklet; identifier match.callback; identifier data; identifier container; @@ -void callback(unsigned long data) +void callback(struct tasklet_struct *t) { ... - T *container; + T *container = from_tasklet(container, t, tasklet); ... - container = \( (T *)data \| (void *)data \); ... } @ depends on (patch1 || patch2) @ match.T *container; identifier match.tasklet; identifier match.callback; @@ - tasklet_init(&container->tasklet, callback, (unsigned long)container); + tasklet_setup(&container->tasklet, callback); Emil Renner Berthing (9): mmc: atmel-mci: Use new tasklet API mmc: au1xmmc: Use new tasklet API mmc: dw_mmc: Use new tasklet API mmc: omap: Use new tasklet API mmc: s3cmci: Use new tasklet API mmc: tifm_sd: Use new tasklet API mmc: uniphier-sd: Use new tasklet API mmc: via-sdmmc: Use new tasklet API mmc: wbsd: Use new tasklet API drivers/mmc/host/atmel-mci.c | 6 +++--- drivers/mmc/host/au1xmmc.c | 14 ++++++-------- drivers/mmc/host/dw_mmc.c | 6 +++--- drivers/mmc/host/omap.c | 7 +++---- drivers/mmc/host/s3cmci.c | 6 +++--- drivers/mmc/host/tifm_sd.c | 7 +++---- drivers/mmc/host/uniphier-sd.c | 14 ++++++-------- drivers/mmc/host/via-sdmmc.c | 9 +++------ drivers/mmc/host/wbsd.c | 35 +++++++++++++++------------------- 9 files changed, 45 insertions(+), 59 deletions(-)