Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2131819pxa; Mon, 17 Aug 2020 01:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpuJueKqhPZ1J5tAE7VbJ4v+GoR5rI89nwCfA6GJHnI84vzsopb5UYJcrQcToCLDSYh+sG X-Received: by 2002:a17:906:6bc9:: with SMTP id t9mr13559862ejs.372.1597652707110; Mon, 17 Aug 2020 01:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652707; cv=none; d=google.com; s=arc-20160816; b=Om+QZq+S6rdYQ9KuLhF3fvflj7OMQtFU3wZK1BZ5i6z4niK4nU/LQGAQVq9v0lPtwh qtYbCyK1gp95up5yFJyPPt6vUu9s+J5/oOIBWaC042INFrJ9y0lqC4IfB36G1yRIXgVe MToF5Hc3wjMxTEXtsSV1zGe7p3Rmu23i0G7sih6HtzPZH3DgJbQ/lwqCcAc74RDUqEs0 pbWx7eyFpEzTI6PWLLzDIYEC8El8ovZEzp9uuJkLYv/dNsGs9C5JAHbSbq6JCv8JuBVO +EhgsSPDbk75y9lUrFlAFW2ansRU//Q27LKI6GCfkOq/xYOcGyCYSuQiU3MdkNK3M3mC AQ7Q== 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=ScSchtGkwbuHnxQx7iSsqRyAzIGJLK/PgYB9DNEv3wQ=; b=pJKZagKNnSBf1OjFcLBrTwRfgmB5m42kTRSEiFOVqM0Zy9Kt8/sYHmJS+umKNT1BV0 PaH6OV641Av89kXWRYvUGWLGzwOeuez7XDq9suogSvLPIuRgYyM5BQWsFtlPi4ZKAAHh PuYQTnyRWiZZBS9UwA/B8w7C0Yw9S5Pgy4aYYG6p+4x5ci3mHeHx4KhdOd64A4jV8/mQ cJOt7dlBbmsyZUJszoOFnPU40jlTO4KGSOtD4vbnX0aibJrSI+GvEx32WB+KOBDftuhd okhPphDrGATp98Ftcx24R0DE0XAu9CcDXVeHweRe8lOLmkFIVsIlYLfFTN/X+edXK27w TqiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i0K2xoe6; 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 w18si11439126edl.306.2020.08.17.01.24.44; Mon, 17 Aug 2020 01:25:07 -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=i0K2xoe6; 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 S1728264AbgHQIWM (ORCPT + 99 others); Mon, 17 Aug 2020 04:22:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727937AbgHQIWD (ORCPT ); Mon, 17 Aug 2020 04:22:03 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB053C061388; Mon, 17 Aug 2020 01:22:03 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id bh1so7122823plb.12; Mon, 17 Aug 2020 01:22:03 -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=ScSchtGkwbuHnxQx7iSsqRyAzIGJLK/PgYB9DNEv3wQ=; b=i0K2xoe6D97BPwpwRK9Bh8AmH4RkiEpDe127j8GQnyPUIu90NxEYUKf2ZHVd5KtzTL NF3Y2fB1vWs/vlujrnGz5RsfEq0VAA0E6HuZJBVgo4f+4aW5ElwqdkdPxwRLhVQ0ZGnV 0m+tA+pHZOvQLIHsUpEFQQPETdoeGVun3IWoKQDFb5d9T+HEpOGZqwPSXibEdWt9WIfb 8sY2pHRmZqtyU2+vBXTmpjtHjkaep4il3F0TSQJrSsrQmxt56VjhWI0bUIj02LHAv8LG l4MvZEBNifnlR6R76r/NT0SEoXYAfFf68rs+ZPOkXWlMhXG3sd6ixpORdSvaiGqIB99e V7aA== 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=ScSchtGkwbuHnxQx7iSsqRyAzIGJLK/PgYB9DNEv3wQ=; b=tfQcW3a9ieIjPZvu+gj61PYWp1hm1pmcSx5tMlpRbzdppPxg7bzw66nm1T6ALlc6bk eGSYlB3gpzHw6XFLhQxHBcSZoY4CW5oyWSGFn6QUNU7n4/S/CmzcDJ+gGrbRqu5cCqer c8RWhyJCo/GQosgGdG/Gjg0VCOThDxJIU7wNzCDjFVgDo0D+RE5NFOaVtiSZ8z2yBWmN 73htKg6f2CO++sS0MZBPICzmLzHMvwITrpwrsLFYfiL6lK/nAjEXG1VfadPi+h0XBa2+ qgUWVt3cO/YLPQneGM5FppkPzofgHsO4GUcuIa/Os/uYdxDSefEXxIYjrZOF3K786tfm fOWg== X-Gm-Message-State: AOAM53196+Dk8tuTBamLEKgoWlm7TbaFaUaZfHBXqhTDIzQpXC56MxQi 7BdyvAcONyfYJwEgfK+ztHs= X-Received: by 2002:a17:90b:1493:: with SMTP id js19mr10563329pjb.223.1597652523277; Mon, 17 Aug 2020 01:22:03 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:22:02 -0700 (PDT) From: Allen Pais To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andriin@fb.com, john.fastabend@gmail.com, kpsingh@chromium.org, baohua@kernel.org, mripard@kernel.org, wens@csie.org, thierry.reding@gmail.com, jonathanh@nvidia.com, michal.simek@xilinx.com, matthias.bgg@gmail.com Cc: keescook@chromium.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, Allen Pais , Romain Perier Subject: [PATCH 26/35] dma: sun6i: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:47:17 +0530 Message-Id: <20200817081726.20213-27-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817081726.20213-1-allen.lkml@gmail.com> References: <20200817081726.20213-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/dma/sun6i-dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c index 06cd7f867f7c..f5f9c86c50bc 100644 --- a/drivers/dma/sun6i-dma.c +++ b/drivers/dma/sun6i-dma.c @@ -467,9 +467,9 @@ static int sun6i_dma_start_desc(struct sun6i_vchan *vchan) return 0; } -static void sun6i_dma_tasklet(unsigned long data) +static void sun6i_dma_tasklet(struct tasklet_struct *t) { - struct sun6i_dma_dev *sdev = (struct sun6i_dma_dev *)data; + struct sun6i_dma_dev *sdev = from_tasklet(sdev, t, task); struct sun6i_vchan *vchan; struct sun6i_pchan *pchan; unsigned int pchan_alloc = 0; @@ -1343,7 +1343,7 @@ static int sun6i_dma_probe(struct platform_device *pdev) if (!sdc->vchans) return -ENOMEM; - tasklet_init(&sdc->task, sun6i_dma_tasklet, (unsigned long)sdc); + tasklet_setup(&sdc->task, sun6i_dma_tasklet); for (i = 0; i < sdc->num_pchans; i++) { struct sun6i_pchan *pchan = &sdc->pchans[i]; -- 2.17.1