Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2130340pxa; Mon, 17 Aug 2020 01:21:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCBJetL8dhAaOFGcpycr+uTPmHqfOhgxtwKR5uMfLcMjS6a2hG8OmWe1PKveWWekMb/qNR X-Received: by 2002:a17:906:6ad8:: with SMTP id q24mr13775990ejs.192.1597652483282; Mon, 17 Aug 2020 01:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597652483; cv=none; d=google.com; s=arc-20160816; b=xr1hmx5v3JhJjwa3jZnhkl2rhpKzbcHEObzwgu4k3Crcyhon9siADLJ2TIvtJ0Ojgx Hw+nLUyZZ4nazp4Q6xknHg/98t0tGddm05zcfOdMe4Y7ccrHZ2YoQpKRmvj/i1N6Fo2s 8PsJPmHoeFZ9UQBN+WU7N76SKm6JxJ9ygJG3beJllSOlB4iJKfkarT0OaWgJY23ApimO X+Jyip/fi8+oUwvMVWveogKpUQYN/t+NKEv2ugEl9x1eRlM/gqSSBc9l0dl0TwB8/f4V YnWFXcxtMjVdBkjoFFJNiinkFLrr3NtC9MuXCEL45ETTES6lPYaeXFXArVwweu4hvfoX WR3A== 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=LXAHZjWOCXqZNRFnEVorFd32pcE4Uer+STR5X7m1T40=; b=BluN554JMU6kRtvXkIBWMmWuVU/p6jRkL4VEVhTueYgjJ+dLkf/Ws9tyX6WmlRl1d1 /nG9ceAHQ+FQNgfDzMgpdaY4Aq5CKnWlNdRyvCfnf7MnASrlLbx0DzD3Tshq3gC+6O24 bczMbc2T7D9bUOeM5f8029MD2yOGbIs5r0ZQkVxmCZBUTzaeBavuFlyPWNM3cvz4JJHF fT1aLZk8BHIbeCrRBUql4M4ILoW8pehV5wBiCZqU75feKrxXeFQsxZS3k19xvj40qEsF 15TNULh+rkL1OYhl0Mqf17ir7c+6dm4d160v1S7nnxkpS2TDdf7jpxsjGXkt2PJ1alby FY0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IgwVbNVc; 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 dg23si10600059edb.12.2020.08.17.01.21.00; Mon, 17 Aug 2020 01:21:23 -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=IgwVbNVc; 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 S1728073AbgHQIT6 (ORCPT + 99 others); Mon, 17 Aug 2020 04:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728057AbgHQITy (ORCPT ); Mon, 17 Aug 2020 04:19:54 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D971DC061388; Mon, 17 Aug 2020 01:19:54 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id m71so7872778pfd.1; Mon, 17 Aug 2020 01:19:54 -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=LXAHZjWOCXqZNRFnEVorFd32pcE4Uer+STR5X7m1T40=; b=IgwVbNVcSBmDm38yYmUrvEmMnA/dM433v1XDeqYJgH3tqNNAT/iGYm+ZViMaYaBo90 pApwy+Tu2y78SX96Tga4eXY8SM5KE8XPOZftkkdfMgUpjwInxrimrBUvqiYyWmmU29Ta dxlTZJ3UuRUIRAdpX6GXydlmBzIIeRbVuE6v1MHEuTUEFUe3LmOUfI+ZusiLGIk2ivl7 8lrFn4miWWTHAfZpxTm5A4RTgtC5I3iZAxZVgSjFwPm/hIueFW/+tscAApV1Khs0Lc9F CgT9TQWa0eimAOI3NSDZD3viKz+1dycrei3FqN9ipQryGDVM+I5TEliaMkGRLmiPKljz o+hg== 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=LXAHZjWOCXqZNRFnEVorFd32pcE4Uer+STR5X7m1T40=; b=FUM5nh4P3N69+WjPqQDYxk1V+WIkCc4oxmYk/IsQmrSkA1Cj2mf/D7KKhstlNLc6HA NfMh8NkCn+fBgn5qV138RlvJP4DROfXisvbWvoj5GhmrXqUWjPE+inBXmBba59Tb8jbe eChjvqFAZxI8Sh1pko2o5OYOwiBvt4iNllkT2gXGxdiKX/EDT6l+zmkJnTvk7LYzw/kX Zg6mGa7Bv8mOv6V97taDPEeLTfvnaR58dXP7J59XCm8K1c2tw28OF/Kb1m5TPYZjrFkn p9xNbvJj0gi0m0MzLcRQRQvSynBpIOyhEP5qbmSAHSm5Ln2AGeKXZ6mR9pkBcWf76FIT 08xw== X-Gm-Message-State: AOAM530Yz5YX8kwZ5xqU3ZrF41EnhplHfDe0yw05TB8tdxWQFifh0bdd BJtsWYNQZUyaJ0QArhM5MIw= X-Received: by 2002:aa7:9813:: with SMTP id e19mr10555426pfl.285.1597652394480; Mon, 17 Aug 2020 01:19:54 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id d93sm16735334pjk.44.2020.08.17.01.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:19:54 -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 13/35] dma: mediatek: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:47:04 +0530 Message-Id: <20200817081726.20213-14-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/mediatek/mtk-cqdma.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/dma/mediatek/mtk-cqdma.c b/drivers/dma/mediatek/mtk-cqdma.c index 6bf838e63be1..41ef9f15d3d5 100644 --- a/drivers/dma/mediatek/mtk-cqdma.c +++ b/drivers/dma/mediatek/mtk-cqdma.c @@ -356,9 +356,9 @@ static struct mtk_cqdma_vdesc return ret; } -static void mtk_cqdma_tasklet_cb(unsigned long data) +static void mtk_cqdma_tasklet_cb(struct tasklet_struct *t) { - struct mtk_cqdma_pchan *pc = (struct mtk_cqdma_pchan *)data; + struct mtk_cqdma_pchan *pc = from_tasklet(pc, t, tasklet); struct mtk_cqdma_vdesc *cvd = NULL; unsigned long flags; @@ -878,8 +878,7 @@ static int mtk_cqdma_probe(struct platform_device *pdev) /* initialize tasklet for each PC */ for (i = 0; i < cqdma->dma_channels; ++i) - tasklet_init(&cqdma->pc[i]->tasklet, mtk_cqdma_tasklet_cb, - (unsigned long)cqdma->pc[i]); + tasklet_setup(&cqdma->pc[i]->tasklet, mtk_cqdma_tasklet_cb); dev_info(&pdev->dev, "MediaTek CQDMA driver registered\n"); -- 2.17.1