Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2138586pxa; Mon, 17 Aug 2020 01:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNC94C9gCsk/0IXb2Dk7PRBG2Yg8AIY6ewklFYe/S0m9A5yn4SdtZ7ngcmos/6Jf9e9g2H X-Received: by 2002:a50:cf46:: with SMTP id d6mr14219660edk.339.1597653559893; Mon, 17 Aug 2020 01:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597653559; cv=none; d=google.com; s=arc-20160816; b=SDjFQRcqAyeoN1WIEs2/QBa7WlCQxunCPhUHT5ipUal4rd/nFQ1J+ELpvWlqme5NyQ viRZ+uSLj/yLjwY77yErqj6UysT12hoS9VuamwiAS3b+egV4ewke2yF/Z03l6pPsBXVy 2DOxk4jIxSnoMxVhnvVJklplbGU8dTjzzd3XDruxO37AYXwx4MTHUOvfnMOK+lxYEVYX xsk/VjlEwsCK4+DH7sS10DwVWp2rujpKwFD2Xa1SRzWqI+MwPOS6Yr9B1pxkpaZoevU2 6JMD5XO5RbDSKsEExR3SVE0XPU6JIcKw6kO0w9K+NPt+9+X/l4aLA+tAC2/dkrXYYttV NVTQ== 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=EXTHOugKC7WcTyd29mBOhii65zA6nCGdQ46/CEABzfM=; b=0YknJNVbw1NB3FCMfEE3vBF0lQRMTQiTCbvzia3de/S/V/2Mppv8tDLty3YqH2rL9T dM4klPzmmN8Kh0uOr0v3b0z0ZCziq3h6fviAydZPuBNNJm41Jprcc1NmuIBJlVYia2xk EtGcULihsseFZqK6gYK1XILRI+nmj1J8ckiRrVp/CJjM9DlxmKvzbSTF7CMW70MFlukr dFVm14aoIZCXS9uFhu/KQYriSTPnVb3y6Hmow3HrB7rBJbibgn5g/xb0YhjL/UIm9Z64 BlvyJt13hMmSA/F/wxg92Ul6xZB+dcCyOJaDxlKDV0ggxPlJMe9oXAc9uv59+jmFNNyG HtPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KK+MLFHF; 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 n2si10344293edy.473.2020.08.17.01.38.57; Mon, 17 Aug 2020 01:39:19 -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=KK+MLFHF; 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 S1728027AbgHQIgB (ORCPT + 99 others); Mon, 17 Aug 2020 04:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726991AbgHQIf5 (ORCPT ); Mon, 17 Aug 2020 04:35:57 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB52AC061388; Mon, 17 Aug 2020 01:35:56 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id g33so7777748pgb.4; Mon, 17 Aug 2020 01:35:56 -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=EXTHOugKC7WcTyd29mBOhii65zA6nCGdQ46/CEABzfM=; b=KK+MLFHF8XZ4V5//pKO3B2MUptSmZ02kxeqix4cEQdwGDIuupQTYk4MV2iUy63dRvk BRSyDhvWiQGN6DuDg/ZYhEupr/fy2P3wtMUHvR59AlXgERg6L1lPSDVVO58NFnwmjbrl KAVdPjl9EuuJoJMQ+hAT4wDt0s0o+HR7exIsYHWhRjFmRFFLZG2K2LBav92cprDbBGT0 JgKpG9S+Ps7xbQkMiAtRdPEl/mDRz0VQEvbwXUczyHmEePAFzLNkmAYOJ98mOI9A3PyI hKnQFrOsyCZM9nPFivZH8PHJAZHLTlS+xnqhKIXWpTLuknIzNgYVjez3mqoovQd2vHW0 X0GQ== 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=EXTHOugKC7WcTyd29mBOhii65zA6nCGdQ46/CEABzfM=; b=IHT7Y64xBH5S90nhSkkllcBMCuCYjPeSbx1v9A+P1fJJLwd09rgsO7pxUeWKWhKpo6 uYe0rPi9+ktzAS5QAUbCBbC/Sbmkg81jbeIeBtF/elA2Pk3koyMYuVeBqxSfbYR5Qxjp gPYsSIrrT9Ib5gDp+pxD7klyEweDP9ha+UZq7OgxMfR5pEck+0hHAsBXXKpzB51WxwwU LH9gPKuczN8lmaab3b0iEZXqREcZp+Jvh6TeDU4IUR/aify2GkUnyQVbq3ujkPfl30Yx H0q3GJs6iz3TKc1iedtX9d2IN2UY1k+WrhjikWO6hmcrQOk+GCPowg5XJUuliN/P+1xa JIRQ== X-Gm-Message-State: AOAM533Pwe7JTi2mU+Bp0f/GX+t0LzKttUKqsV2aMj/YCHUk2fHOMiSm yx1eCYzmocmTqNbQV0RDXXk= X-Received: by 2002:a63:7505:: with SMTP id q5mr8919463pgc.312.1597653356453; Mon, 17 Aug 2020 01:35:56 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id h5sm18434068pfq.146.2020.08.17.01.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:35:55 -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 07/10] mmc: s3cmci: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 14:05:05 +0530 Message-Id: <20200817083508.22657-8-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/s3cmci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 444b2769ae2c..7540221d402d 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -549,9 +549,9 @@ static void do_pio_write(struct s3cmci_host *host) enable_imask(host, S3C2410_SDIIMSK_TXFIFOHALF); } -static void pio_tasklet(unsigned long data) +static void pio_tasklet(struct tasklet_struct *t) { - struct s3cmci_host *host = (struct s3cmci_host *) data; + struct s3cmci_host *host = from_tasklet(host, t, pio_tasklet); s3cmci_disable_irq(host, true); @@ -1565,7 +1565,7 @@ static int s3cmci_probe(struct platform_device *pdev) host->pdata = pdev->dev.platform_data; spin_lock_init(&host->complete_lock); - tasklet_init(&host->pio_tasklet, pio_tasklet, (unsigned long) host); + tasklet_setup(&host->pio_tasklet, pio_tasklet); if (host->is2440) { host->sdiimsk = S3C2440_SDIIMSK; -- 2.17.1