Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2815323pxb; Sat, 30 Jan 2021 16:04:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyHHRq3DX5eqsAs+oajgP5eiCOUnta0jmKkrJTRLhue2Es3hDi2GYZYePsFLZqP+ZWa+EZ X-Received: by 2002:a17:906:f919:: with SMTP id lc25mr11264589ejb.323.1612051489751; Sat, 30 Jan 2021 16:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612051489; cv=none; d=google.com; s=arc-20160816; b=nwKyiAubby6jno+Mt0iNRqPukNQ5/gzwkbamHKnuUM/uC5Y6L1Mz7zDRwA1+C5Cazh 0VjQkvRzUyH7RXzXwjRRTmxSM2TDNL/7ME+jqkhMNLJnjol+X0hzcUzRABcHQkd9g9Gy O8M9vT4ITX+96aReyTul13BA0ueZY/DoUk/hcLrJXEgG4T/6essLHamj8O063IkeGglC IttWMkEFt8icc8G3kYICxCikWvmV9bTbR+EHu3gLn3EQalDrqMcRhVzkFNTcm57LRSQh uePMzp1fd7mQ/mm0Awwx2TEQatn0jf1FBqRbEqNJINEneq2S1tB+fS/vbsd7XXplqctG 3KEg== 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=CG9ZiWaCv3bx5ltk61kSJm2LBKdDpzjaTjs3MVGhqzs=; b=GTLyr28lvBQozbcMQtU7enTKksXKewNON2o0S505fKQ7Etubq0yEDB6XAAnM/Hlzp4 ge6JPnsdUZ91fMoSXNJZXXL5l6G+V7KWeYg62zA6ytNin+bO5hGPkZDVxCKX52aHmDzv cSlODwplh2uYnULcHGjnmw2BpPoHpQCVzkey8ZW/31bnyOOutUrNrTjDXHB7JSIjiLKH fBpiOJsBNyd6NlpkiWDMTseJc9QzHUxVBBgU85KnD1tkHiPJVul3csopHNNwOX6xty6u zVm2qvXlyL9B+2TwcMYpBTF4OqaL/m2Q+PHb0NedgLEQvSUVw/HqqqxNBNq1mAHU8g5l 5+yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N49ZbO8K; 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 v16si7944935ejy.232.2021.01.30.16.04.23; Sat, 30 Jan 2021 16:04:49 -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=N49ZbO8K; 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 S232776AbhAaABl (ORCPT + 99 others); Sat, 30 Jan 2021 19:01:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232496AbhA3XtS (ORCPT ); Sat, 30 Jan 2021 18:49:18 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BBBCC061788; Sat, 30 Jan 2021 15:47:59 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id rv9so18534788ejb.13; Sat, 30 Jan 2021 15:47:59 -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=CG9ZiWaCv3bx5ltk61kSJm2LBKdDpzjaTjs3MVGhqzs=; b=N49ZbO8KQSEl3A0VbcrsegyS842aB2mNMwWGEXpArgao+qmKK1pWT2BmVQbXtqSyQ4 2Wa94o1ojWDEE//z6V55OIipzBzqMX13pNzFigYInjnGcyUpGgPMuVndChwTI5s+fQKl Ftba+H9mo/QmKi32nOWT9lt+ajGLNryyN0wwIEaVc5ISLFL1B3kNjsc4tz94HrmxFe62 nJuUJzncoOEYZWRJB/EIWk4+nu8FArX4pm8XseY8EUErYGR/nZ6KlUctUlk6dZjPp81B nKsPt6Hra1vGjXxMtPzECNBja/NY3pi7tlS14XnDJJR7BNC3aJJZ0CgmE6lcvXSFOVUQ by+Q== 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=CG9ZiWaCv3bx5ltk61kSJm2LBKdDpzjaTjs3MVGhqzs=; b=DPls6KkwXVY5uOXifDvu5a6K/N1B0b8iLuz/u7kqIbrx2Lw8xVPwZQ6J9PbqTgT6b+ jHeEbbpGIGwyvj5850A2h/mgLwTWy6X20xvj4jtICd3BLL5QvDyDdcNVCO75ZrOHrCrP ZiVdqEVTM8Qbzy2NKSOu7m899Qct6BaTVQMYMxYmJ5bEMCXG4w+nZw4U3/MSaycvbZYz gec8gGEmmhtJTiZUZqk83hvq1kMLKiTH4zNjKhLOWK5k71mXGYiSlnZ12iSORqK8dSwI kmEOPCv5rE+kEGI6vDcn8vlFFoza0pmEK4NJ/GnT5ndTCA1ZM0Du2xUqD79nNP8ZBPlj JXfA== X-Gm-Message-State: AOAM532AwIijtyJphJslA4fNgKSNhHecTVGDBEGxCn7moYPIHrHk0jLR 56ijENhix287N1JQTiM8fdOQcJ+Axy2xiASN X-Received: by 2002:a17:906:68d0:: with SMTP id y16mr11364287ejr.128.1612050478265; Sat, 30 Jan 2021 15:47:58 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id u17sm6628009edr.0.2021.01.30.15.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 15:47:57 -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 7/9] net: usb: pegasus: use new tasklet API Date: Sun, 31 Jan 2021 00:47:28 +0100 Message-Id: <20210130234730.26565-8-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/pegasus.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 32e1335c94ad..9a907182569c 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c @@ -553,12 +553,11 @@ static void read_bulk_callback(struct urb *urb) tasklet_schedule(&pegasus->rx_tl); } -static void rx_fixup(unsigned long data) +static void rx_fixup(struct tasklet_struct *t) { - pegasus_t *pegasus; + pegasus_t *pegasus = from_tasklet(pegasus, t, rx_tl); int status; - pegasus = (pegasus_t *) data; if (pegasus->flags & PEGASUS_UNPLUG) return; @@ -1129,7 +1128,7 @@ static int pegasus_probe(struct usb_interface *intf, goto out1; } - tasklet_init(&pegasus->rx_tl, rx_fixup, (unsigned long) pegasus); + tasklet_setup(&pegasus->rx_tl, rx_fixup); INIT_DELAYED_WORK(&pegasus->carrier_check, check_carrier); -- 2.30.0