Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2814593pxb; Sat, 30 Jan 2021 16:03:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSElB9B9+ZE5RKX+b7nkSAqgzwO7QhcmwcuF0BfdCsL+CLrwUgOUJPPgfLMCriGPWurCOj X-Received: by 2002:aa7:c88a:: with SMTP id p10mr12063414eds.204.1612051391913; Sat, 30 Jan 2021 16:03:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612051391; cv=none; d=google.com; s=arc-20160816; b=cztLZob9MOTY3bB5/WLOWuLmDmVghIKZX15cvm+24QsQtHuLZIWSeojsC7eLn2Hi7K rA+X/3L6K4QM+WLofmGAFJKVgZpsW7HZ0yiYShHXErm2PVALWAplgi9f0xWB8VcehvEC K3NycoSjiy/SBGa942LE0YfXoTHIQVXIfX1GbEOYFIFDK1x/mXgA/bh8yjGApgZnLqxG q+YXQKdkWSaYUe3dMwQ5Srwnq+ERqwREnazPgE51Me7F5r0mzppJDLl1f0N1o4WYyMIT HB1brop04XsIaHkPyEvgYmcOHIWvonUbwXom+LKgih7V1F9Caqk1ha2i7zXdWvbuUUWV wg3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=H1Cm87epGk3yHYnXa/HQswxlCoCs7d3pmbS6SaZIvj4=; b=Iy+UUE4nhbymvHwqYa5Yw4jwDaQa7S11nEmrWe/3eC6n6EB9Ogj86v5pJbCtvCMsS5 jB/ELBsvOwcIbrV7BpQsg4L4JjcdUN3vALDOEoHxzLlGwhqQHRPEeqHQ7LmeTcF/oxVO CtNs2fNgB3/+aw1iDNITpztm90I+kX0nqXC40limG1wdNh6vaiNuP3bsOoihfgCouxzi A4/Cxy4jgr9dM2xmg/nCT0/0ibpDqPc3ekJSErXgL/bD1Nx25eL8cTLRNyk3OyRs0qQ7 YKfT2Ji2greRedpcJJIe4xZB/JRKIBDcQ1vedSXXeM6mTeFwvPvVtzQWD7ydQyUDCiAB eIlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TJXAnUPI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si7343955ejx.582.2021.01.30.16.02.47; Sat, 30 Jan 2021 16:03:11 -0800 (PST) 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=TJXAnUPI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232545AbhAaACI (ORCPT + 99 others); Sat, 30 Jan 2021 19:02:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbhA3XtS (ORCPT ); Sat, 30 Jan 2021 18:49:18 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B412C06178A; Sat, 30 Jan 2021 15:48:00 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id a9so198181ejr.2; Sat, 30 Jan 2021 15:48:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H1Cm87epGk3yHYnXa/HQswxlCoCs7d3pmbS6SaZIvj4=; b=TJXAnUPIZF10U5PRVBvJdbP2vJux0LwiO3RRWlJviahAakyN78HEwz2dUa7HF6dmmO 7TMNBrg3tVG2YXp7U93Z+EFb5wNOKvX8RtpY4QR6HehnL4kEEPRwYNUsgVZ0ppnALdFP uEPky/DLZMKJunM5ba3+usxTJd5+B5zfqHqm83MrIpkt/s75f9yROcEr9u6NNQov2aJA R14gkm8sDmwB3a6cdnWpknyVEY1tP09cunI4nexbe22bk3Grvw/J5ZAPEqZKSqam1yD0 GMcuVQtuyq5DSASAqRNIFPfauwlpHbkKygSKfBZsp1FK1CQHgLT1PuIViq6RkJcM3sXD Jeag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=H1Cm87epGk3yHYnXa/HQswxlCoCs7d3pmbS6SaZIvj4=; b=qlOMjt3LJK3VicYPg07RwJXMdktjb5+1/SY+hDOMZFrwVna2vQr4orjck38kn/hLLp fsYhiWUrkjlreCRuTFl2vaRwdbZjfYYpnY/z0A1zM2kGcwBgMGHfsrS2Fshmn3ABbvSM 4n287eGHAjpgpbpWuUfwj5WvVLvo1TwBQVdM87GAbn7WykawwTnyC/KR4jeBL6wDakVz xBzDAHptvzTXnltvkNtyqUtHnKduvxu01ziJc/EIIR6PBT73I8sPJ6qLFDuWcOJV6u/S TaWgkuowah1F71TtnDcUHc5yneV0lQYopJ3oIUmVMYD+Xiv4zh8IXrTtfw0aZL+7vrdK RyuA== X-Gm-Message-State: AOAM5310GeEwk0uQkSmZxGN8qY4V4LPZVQfEF5qNfLHO99MOeDOgNeCS JTLLJwDmqEIbs0HEMxdKkwUs5XgJGnGDqOVm X-Received: by 2002:a17:906:a450:: with SMTP id cb16mr11315700ejb.167.1612050479257; Sat, 30 Jan 2021 15:47:59 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id u17sm6628009edr.0.2021.01.30.15.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 15:47:58 -0800 (PST) Sender: Emil Renner Berthing From: Emil Renner Berthing To: netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-ppp@vger.kernel.org Cc: Emil Renner Berthing , Michael Grzeschik , "David S. Miller" , Jakub Kicinski , Paul Mackerras , Woojung Huh , UNGLinuxDriver@microchip.com, Petko Manolov , Luc Van Oostenryck , Jing Xiangfeng , Oliver Neukum , linux-kernel@vger.kernel.org Subject: [PATCH 8/9] net: usb: r8152: use new tasklet API Date: Sun, 31 Jan 2021 00:47:29 +0100 Message-Id: <20210130234730.26565-9-kernel@esmil.dk> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210130234730.26565-1-kernel@esmil.dk> References: <20210130234730.26565-1-kernel@esmil.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/r8152.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 67cd6986634f..0d7d2938e21d 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -2393,11 +2393,9 @@ static void tx_bottom(struct r8152 *tp) } while (res == 0); } -static void bottom_half(unsigned long data) +static void bottom_half(struct tasklet_struct *t) { - struct r8152 *tp; - - tp = (struct r8152 *)data; + struct r8152 *tp = from_tasklet(tp, t, tx_tl); if (test_bit(RTL8152_UNPLUG, &tp->flags)) return; @@ -6714,7 +6712,7 @@ static int rtl8152_probe(struct usb_interface *intf, mutex_init(&tp->control); INIT_DELAYED_WORK(&tp->schedule, rtl_work_func_t); INIT_DELAYED_WORK(&tp->hw_phy_work, rtl_hw_phy_work_func_t); - tasklet_init(&tp->tx_tl, bottom_half, (unsigned long)tp); + tasklet_setup(&tp->tx_tl, bottom_half); tasklet_disable(&tp->tx_tl); netdev->netdev_ops = &rtl8152_netdev_ops; -- 2.30.0