From mboxrd@z Thu Jan 1 00:00:00 1970 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.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 32CE8C433E1 for ; Mon, 17 Aug 2020 09:04:17 +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 CB8F32063A for ; Mon, 17 Aug 2020 09:04:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FXMS+nKZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gulnIYNf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB8F32063A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To: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:List-Owner; bh=Bq8MNVDyGZfM4Cm0TBcfnpBfBxqhXgkEQ0k6fl5shUs=; b=FXMS+nKZBnlkh3txjg13mkMhcE YwnUt9rwi7fe8QabeVwZRgB4n1p4qc64xLrM7ONn6M0fkqNGCG1q4xY/WibZyQzPGrO7XesjjsYNl nW0bTFFhM/bhyMEarMzHZaf/hdkg3FG1DxrbxJHspaIXfSYDEwiBI+C+os2mq9jOzLyNaq0frgYxn mmKRPrBi37K9IunO5rs8px48ghKmR+8p+AVQ9KWO1o9jp8jIhZk+kAu72/2XYbC5DQHbQqXiV69Hu VmQMCNl7n1xqlTPaZ0drW7HpoBUv+QrnQ5SZbhaLLKhJMwUduufN4agQz9QqZWmlMPT62kaaKX3uE eMX5SGmg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7b20-0004hb-FB; Mon, 17 Aug 2020 09:02:16 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7acK-0007po-NY for linux-arm-kernel@lists.infradead.org; Mon, 17 Aug 2020 08:35:55 +0000 Received: by mail-pl1-x641.google.com with SMTP id q19so7160527pll.0 for ; Mon, 17 Aug 2020 01:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jhwHA9iT6gG9p11YNGvMfQK3PrAipcXrN5ECqFQlHWA=; b=gulnIYNfT0Y3CUDDfpjFjMeTf1Vv4n2l9IELuyJwpgh/sK6hHAB9WSl4g1yK+dN++o niutqyw7Mv7WRnHhuP22dgamV6479B8guvy56zDjbSVfSsbQwpGDZb+B117fGn+dvabP 0Jp6eR0JwsH1EHtBoUf1a0JE0x0Z01+H0kSMahkxo75Vu6CVg+CYUE24ehpKXvEuGlLS ufpqKFXZMNhIwLB1bPwGtxn8gQD2J2deloI2HP/mKeQLgwF+LspuhdRE4EDZsLtNzQ81 +wSfasi/h8GuN8f48tx8G0hp44NQTWzT4nejdhxLYmHMEvc/7DdCD3oQwYN9ZLcArqSU LZsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jhwHA9iT6gG9p11YNGvMfQK3PrAipcXrN5ECqFQlHWA=; b=pIFCb+g20QqafoGrfUxMUjb2sfCykXmJbF4K2J6bQmHG0ZoxZ3V9gdBaS+6Re1RCD7 x7VM/T+PY0AxJ3fPp6PYx7x6Z9/kDI7QbBZLxS3f/QM3OqZf7amyYmvYkXxqjaLSi77j YaYu2lcA+5Sr97VzGCuql/KunvMl0cmN+jVlekVHm3h1i9swlRj3OfzSUnvhrq0UMX9p 8GrGdZ2v9vy+U3b9loZkRxy83F3tXDYixD5ZL/RMwSnPjzBukN2b/dyHBRW9B+PkJO3M R/T2ngQj9P2JGCDXwyPjmXdqyXrIOOpMvKRpnfc7Shgku5XsPhliT2/qPUDXMXfmAgUD i4gw== X-Gm-Message-State: AOAM5317q2fpqrGkuqRtc0XwSmoeF9yfUDtxU63L9JfvWeATOui1NJY7 y6A58/kIp/P5NNVSisY9cIQ= X-Google-Smtp-Source: ABdhPJy9zElavpxqpBa2OrUYgtVBBx6wLtQaG23S5v8ec764n5rq7zXO2QFHjt/Y25P4vXHVCORDUQ== X-Received: by 2002:a17:90a:ff92:: with SMTP id hf18mr11858868pjb.107.1597653342408; Mon, 17 Aug 2020 01:35:42 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id h5sm18434068pfq.146.2020.08.17.01.35.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:35:41 -0700 (PDT) From: Allen Pais To: ludovic.desroches@microchip.com, ulf.hansson@linaro.org, manuel.lauss@gmail.com, mirq-linux@rere.qmqm.pl, jh80.chung@samsung.com, oakad@yahoo.com, yamada.masahiro@socionext.com, brucechang@via.com.tw, HaraldWelte@viatech.com Subject: [PATCH 04/10] mmc: dw_mmc: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:05:02 +0530 Message-Id: <20200817083508.22657-5-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817083508.22657-1-allen.lkml@gmail.com> References: <20200817083508.22657-1-allen.lkml@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200817_043544_989050_561FA37C X-CRM114-Status: GOOD ( 13.61 ) 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: inux-mmc@vger.kernel.org, Romain Perier , keescook@chromium.org, Allen Pais , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Signed-off-by: Allen Pais --- drivers/mmc/host/dw_mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 35ae5737c622..574e5a7a697c 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1952,9 +1952,9 @@ static bool dw_mci_clear_pending_data_complete(struct dw_mci *host) return true; } -static void dw_mci_tasklet_func(unsigned long priv) +static void dw_mci_tasklet_func(struct tasklet_struct *t) { - struct dw_mci *host = (struct dw_mci *)priv; + struct dw_mci *host = from_tasklet(host, t, tasklet); struct mmc_data *data; struct mmc_command *cmd; struct mmc_request *mrq; @@ -3312,7 +3312,7 @@ int dw_mci_probe(struct dw_mci *host) else host->fifo_reg = host->regs + DATA_240A_OFFSET; - tasklet_init(&host->tasklet, dw_mci_tasklet_func, (unsigned long)host); + tasklet_setup(&host->tasklet, dw_mci_tasklet_func); ret = devm_request_irq(host->dev, host->irq, dw_mci_interrupt, host->irq_flags, "dw-mci", host); if (ret) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel