Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2126565pxa; Mon, 17 Aug 2020 01:12:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycptuMW9qrH/5ukGtPVo/hPgtgavdoqg5xUh4zeIcPYudIdKpHUuASTvtGK8wBEktN5OBt X-Received: by 2002:a05:6402:22c8:: with SMTP id dm8mr14424076edb.41.1597651945834; Mon, 17 Aug 2020 01:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597651945; cv=none; d=google.com; s=arc-20160816; b=iO5Wy/vGhsTXYnImi6Jw45QfsykYPALQwbzQx/9ZFo0DecK9KYG4PUD7UGz+pA7/qJ kCzOu8QoBHzp1ZLcI44Bsf0PNJCXsp2HpPyPJqsEqlm9o4aGNX0XrjNnetnhybOML8IO FyCe1J/cFjj4bM7aJupIML3qnF8YXefCbi0c3PIhpXztW+yGcloDM5aE4rlCOcbBFHty zilMEs3XcFl95hbozirAdjr2ySukNVLZOFbb/AWsqhdvyPC2DvuU/QvVoqhA7dyXI/BS PKUAZ86B+929pLk4SXk1+BKMxxGUwb6IQGcuW4HEI958EKUEsdYEQ/rRB6dWHYjYZdPh is6g== 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=c28nS7WM/lTYYOV8e8WUD4cNVy3Nzu7Y0qu9f3pUCU8=; b=bu0ssfCERrw+iQtIElcHMmVYpfReGYyVhqfIYSCOvQYy9UPCVKF+nBKfkBtvQtnvxY 1RAjijV4p8/JMRnIH0Lrh+60D5kS1Hd0vEKfUQvmscuX9bpdA5UA8naB4XQOg7X4a2Yb mCN31TTvYI/OM6uFrq2eaGIkDNgrB/JfsryjITRVetSzu1phs7eJARZ5yeT/d6IbW27l 4KhLZtyKKxpdQaIK8Us1Xzk4EDkXYHxBl1dmCRB9aUyJjGfEkgWT2/ZaYip4G2+batn2 X4kaKhj2OwnPh1HC5+THa07SbmDEcU53Vy3HvkLT7AYrmKBlqIXf+y1yBnpsZfJL9Vdc d5lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JKaW/qhi"; 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 cb26si11226980edb.2.2020.08.17.01.12.03; Mon, 17 Aug 2020 01:12:25 -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="JKaW/qhi"; 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 S1727074AbgHQIKs (ORCPT + 99 others); Mon, 17 Aug 2020 04:10:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbgHQIKn (ORCPT ); Mon, 17 Aug 2020 04:10:43 -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 01683C061388 for ; Mon, 17 Aug 2020 01:10:43 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id u20so7860704pfn.0 for ; Mon, 17 Aug 2020 01:10:42 -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=c28nS7WM/lTYYOV8e8WUD4cNVy3Nzu7Y0qu9f3pUCU8=; b=JKaW/qhiuSNySCEDtskRMrkBRMcOYGrH0RWP8TPo+yYLl2eZCTVycD16UiJAsViA5k MkXG7XD47OeYn+hc+/Dq6+RAOz8cem+i9O4jDB6xuiGZjjfLcC+7P3iW2oejT+HjaBij Rqz2I8RZEKzf7kizbmX2KnnKxFL9O0u8zAdXxw9Uy/Sa/JRB4o0laqHAYtGuodcS52rI zME3rgin9Ca0nJRrNelux/wp7R8tf4X0J0txkY5T8d7JWZYxdj5kOiZxAi+y1Iq77wmA 47klSV2lR00j9fuVBF2asw1sS/xrgTauYLJB2b5P6UbGbqlDupcwP5YdT23MYcReuUeu 4YYg== 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=c28nS7WM/lTYYOV8e8WUD4cNVy3Nzu7Y0qu9f3pUCU8=; b=jjzE7Xc10CzxRVKjbpOhX3sd8SGjzyCUZwf2WYdYWqvSQ8C/LjrEFkvKLpOyEDayTX D12jBvzQXaQ9SnOIA/m6ckWc8UutX5u3NXU1JxsDhhFPZbhusX9Z92rqPVd4oqil/Qjc dtkcHd3s0/+J7ZJNKrVfUYWg5JTuon/4npJB8Rn8to8b+tdOKquGqBlGf2GSc2IL1ylU m/Dnumz6ztE0derJ1X5KWp8nGquwSP+mWn+r6D2/r3j6usmXcogwHfUPAUaidaihbMYw gnA3n89r2uh5rHtDfPbrURopa4O2gy9Xzo7WotdG36gF4/o7vHQmWJ9L1rMlSYyntI8O 2yFg== X-Gm-Message-State: AOAM53112GVmgQ2byt9i5bC232Scnh6K7jHhXXtZvIJjYySQJfgkS5JD HHH0Tsq0xm6ZL074M8p5xK8= X-Received: by 2002:aa7:8f04:: with SMTP id x4mr10836392pfr.199.1597651842595; Mon, 17 Aug 2020 01:10:42 -0700 (PDT) Received: from localhost.localdomain ([49.207.202.98]) by smtp.gmail.com with ESMTPSA id 77sm18499751pfx.85.2020.08.17.01.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 01:10:42 -0700 (PDT) From: Allen Pais To: nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, heiko@sntech.de, matthias.bgg@gmail.com Cc: keescook@chromium.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, inux-mediatek@lists.infradead.org, Allen Pais , Romain Perier Subject: [PATCH 08/19] crypto: hifn_795x: convert tasklets to use new tasklet_setup() API Date: Mon, 17 Aug 2020 13:39:30 +0530 Message-Id: <20200817080941.19227-9-allen.lkml@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200817080941.19227-1-allen.lkml@gmail.com> References: <20200817080941.19227-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/crypto/hifn_795x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index 354836468c5d..785d7c4f44e7 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c @@ -2443,9 +2443,9 @@ static int hifn_register_alg(struct hifn_device *dev) return err; } -static void hifn_tasklet_callback(unsigned long data) +static void hifn_tasklet_callback(struct tasklet_struct *t) { - struct hifn_device *dev = (struct hifn_device *)data; + struct hifn_device *dev = from_tasklet(dev, t, tasklet); /* * This is ok to call this without lock being held, @@ -2530,7 +2530,7 @@ static int hifn_probe(struct pci_dev *pdev, const struct pci_device_id *id) pci_set_drvdata(pdev, dev); - tasklet_init(&dev->tasklet, hifn_tasklet_callback, (unsigned long)dev); + tasklet_setup(&dev->tasklet, hifn_tasklet_callback); crypto_init_queue(&dev->queue, 1); -- 2.17.1