Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2137504pxa; Mon, 17 Aug 2020 01:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6P8fuTpqB9T6H6TxbPj+WrYEgnYdfEHhRfa2YCzEW/qiZF7+k4FudLPZ+YqqNa8nwXnYD X-Received: by 2002:a17:906:7790:: with SMTP id s16mr14854326ejm.254.1597653412118; Mon, 17 Aug 2020 01:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597653412; cv=none; d=google.com; s=arc-20160816; b=P03ymzOgDYN4GCQscPgAELeU/ZxxSwVPHsHYsLaw2gGXac2CAjTpZypdQzotEo/YXU tLsaFn4adeW7V+RDno6dl+Tf6fxEodKiMAHItYQwq1sgvV1EtSYMesSn0X4l8/t7p+TE KqZUYR2l0cv605h0ZC3JDEtbuknsMSD/ofW8ebs46YGh/cKxcp69fCnsD/NVkhl0rCiz UBSwLUKOTm/2X9L4/LjOSXCtItKvA1ed86uo0CpTmUEl2GrrGQoRb0onQ8LuLC8rQIt1 +8bz+bzW9TTg4LQ63hYecTFH3fzu1shrvePGxFuxrZQpYQr8ch7yQWbKoWrxKJUxfUL5 bGaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=V+IY+0oce77n1O9F863vvzmAh9cNOoW4gGZxQ9nHc9A=; b=o1zeJM8FQxtJzxUgvgg5wuj+Sf9WATFfvz7XDtHWkZkpeR5KCl6wItXk3UC9KesMsV UPecGAovbH0PVY3EWemmSt9ft0tiiehJZrq6C5+FPbS/6VpHM3rhfoqavbBsEz6q95lj 6wCLdge5vKxQ93229k0NrJFyt+gQNV5ZbI9CFeGPfUaTFzp84NOmcbh795f02hqEmF8O sbiDG4ZLeiNroU9rDoXW+BuIE0zeacpVkPvY8Fyw3inBhOaWpQY8PxEE+nUqIEBFfoOc l0lbF3sCqRjoASzIzGhg58sYzfvOMM8PqWh3wZFIcjVekg1wM7uW/viQioaATHpAls2J P3yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e1rw46Ln; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si4542418ejf.419.2020.08.17.01.36.29; Mon, 17 Aug 2020 01:36:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e1rw46Ln; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727797AbgHQIfo (ORCPT + 99 others); Mon, 17 Aug 2020 04:35:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbgHQIfi (ORCPT ); Mon, 17 Aug 2020 04:35:38 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D366AC061388; Mon, 17 Aug 2020 01:35:37 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 17so7877418pfw.9; Mon, 17 Aug 2020 01:35:37 -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=V+IY+0oce77n1O9F863vvzmAh9cNOoW4gGZxQ9nHc9A=; b=e1rw46Ln24gbKIg1ppq0fzzVXv+VpHghXbf9lAKfxsr2UawmfLW2T3Xl68u/n+z6UG Yk6eKFTOewcDwbK7nj37Yi28tnPWUMuM8Zdi4LhoBtd/xVsrG4qMTxyDZMRuAFByZDT8 pO3mIG7wYETBil7GuCzpqOCMZ5OL3obKg7vcxk1RHnAaWZqzoW8eoW4NIXeChY/nwTBL dt+GgPbOBnmtOVgUsKR2Mpa3w7qYVsJy7/pzvaPTEqwLHImusixvOmei2RLFxo1E5vcx O5Na8zNOJ910dHmJggjQYKZfa+cfdwTQD5a6v03q8SDH4/5kD98zLOYkNu4O5y7z9+fg X1Jg== 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=V+IY+0oce77n1O9F863vvzmAh9cNOoW4gGZxQ9nHc9A=; b=hnDYnOK1obVuWZfT5Aj2q/oZepkzpOMYIf1b99otDmA+ue6uE5BbQgMC8lCF3Zr5Uo jD8yToI9aY3qqAO5laQmDjUc670yuIMeFZzWl941THabeHbSvferkCWxSRCuRJ6nV84R e84JU9Pu1MJ5ZLNMVPlBvRYWg236RTOfGs3JjWzSAHQksfEjWUkiufvBNPszPcqDuMEn r5uFfa4QSCMqLQmOTG8BqgWxc9dISMmBgWELEq8rqQ8PN3WjimkN96mx6ius/Jkm/iNX ymy1JTtEiaQMSaZqGiQGg84yTO4V/zAeII5aOyPnBdbpSpkAlhNCNVesKFJk4dr0yFPf cWeQ== X-Gm-Message-State: AOAM5338W8OzyCfDBbjEKjuw3dOV3vr2IFcZgSlcj8Fyjw++6akW6QA8 EEew97AdikSLbT+HXOBW3qE= X-Received: by 2002:a63:2fc3:: with SMTP id v186mr9030009pgv.158.1597653337480; Mon, 17 Aug 2020 01:35:37 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id h5sm18434068pfq.146.2020.08.17.01.35.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:35:37 -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 Cc: keescook@chromium.org, inux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Allen Pais , Romain Perier Subject: [PATCH 03/10] mmc: cb710: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:05:01 +0530 Message-Id: <20200817083508.22657-4-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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/cb710-mmc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/cb710-mmc.c b/drivers/mmc/host/cb710-mmc.c index e84ed84ea4cc..3e8fd2850794 100644 --- a/drivers/mmc/host/cb710-mmc.c +++ b/drivers/mmc/host/cb710-mmc.c @@ -646,11 +646,12 @@ static int cb710_mmc_irq_handler(struct cb710_slot *slot) return 1; } -static void cb710_mmc_finish_request_tasklet(unsigned long data) +static void cb710_mmc_finish_request_tasklet(struct tasklet_struct *t) { - struct mmc_host *mmc = (void *)data; - struct cb710_mmc_reader *reader = mmc_priv(mmc); + struct cb710_mmc_reader *reader = from_tasklet(reader, t, + finish_req_tasklet); struct mmc_request *mrq = reader->mrq; + struct mmc_host *mmc = mrq->host; reader->mrq = NULL; mmc_request_done(mmc, mrq); @@ -718,8 +719,8 @@ static int cb710_mmc_init(struct platform_device *pdev) reader = mmc_priv(mmc); - tasklet_init(&reader->finish_req_tasklet, - cb710_mmc_finish_request_tasklet, (unsigned long)mmc); + tasklet_setup(&reader->finish_req_tasklet, + cb710_mmc_finish_request_tasklet); spin_lock_init(&reader->irq_lock); cb710_dump_regs(chip, CB710_DUMP_REGS_MMC); -- 2.17.1