Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp657827rwb; Thu, 8 Dec 2022 00:57:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+9yigsdCpVr9f3oAYzN4tXgx3qyc4FYc3N3l+svmVbYg/GCHLfRMjUEGHHFmC8x876E5/ X-Received: by 2002:a05:6402:1117:b0:46b:6da7:e8a9 with SMTP id u23-20020a056402111700b0046b6da7e8a9mr35924164edv.401.1670489862207; Thu, 08 Dec 2022 00:57:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670489862; cv=none; d=google.com; s=arc-20160816; b=mYya8epvWAa3Vj0FjduMH/Z+Qynx56bs3TdS35471aOnAwaidUoeVe7qDbyrTQDsfg 1/c+UeWbym0eEMcJbLy1ecI/Cz/HQbxuxNS90aVK5U5o9FBvjo18alFnQEqyJu3ahV+E gYxLWlXp6xUem92lfh2ESi+Ex6qdVajYBkggwbKFRw1iggF2w4D+Fi3vtLLOJYd3Z3sY aUALyarydR63B74sDUmoCPu3Ct8ZhdDD0RNdXTp1S0bIk+VXKhPUhBztmCpzZnUWJ9IJ W4FLGKQRmhNEntVIyjpfpj8BQqcUoeuSoHISV4dUPpdxKVuGX8MtY8xl4rA1TnbxqHJm x7gQ== 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 :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=PRliwF0o7oV85eapVBALB7fOMkMAiSkW6Oy/YS7Oo7U=; b=t2T0Ke41bPhIsYRcYF5k+rU74Yzu9EDNdOBtSDyMkrzTSUuqMwptLdYQp04fBzZsDB dp0X5hJugp7D6apj3IY+06dfELaOVI6L2rUcsTt484pfxGlVK5UPoaQ/AEPtNmD3Et56 WfHnIZU3K85koEU7nZ7auM2/EiyDNqmG7IN3WUPRC/sqEBbB5eGm5Cbcc1tZvjbf5D8w n53TTRpZdlVLGgUmR4d+KqcmZyDrQDOMXHs+NRnJxHfpKtB5x7KMBofo8oYmN5dSeW+H hFVFVUbyTaNUxx7vG8bQ5KDkdyC/mwnXmX96qf3RveFhcwQAYFCgg+GmNUGRDp2sEuA3 mhwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lATRXt6d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rh16-20020a17090720f000b0078b88453306si14157047ejb.285.2022.12.08.00.57.24; Thu, 08 Dec 2022 00:57:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lATRXt6d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbiLHIMC (ORCPT + 73 others); Thu, 8 Dec 2022 03:12:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbiLHIL4 (ORCPT ); Thu, 8 Dec 2022 03:11:56 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF89555CA4; Thu, 8 Dec 2022 00:11:54 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id cm20so931247pjb.1; Thu, 08 Dec 2022 00:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=PRliwF0o7oV85eapVBALB7fOMkMAiSkW6Oy/YS7Oo7U=; b=lATRXt6dkZH4gt5YhEeSt3x8Ghu6sSs3KcRDI+4ekQOB6pyiwssZyJfKLrqfQEJwbX H6oHmzvJEss7JQbYUADpVr9RQSmwRI1nqmg+kkgvmUBf6EynopgFdwzUgGKYCpcuq1Nm lo2d9Q7vSLrNyRaeLeGkYOWwhBqlgjP+kdCJsoItvTA4TP12Fo6NkfhCT6jprPFchxZV oGPB4MXBT42laQQxOIcPFoQdTlYf3P1C+JP+AmmV3hc8YyOAYYdZTyHGrEfsRPxk6G17 aUK+amu4RPoHGOday6Uf2ZmmM5mZ2lnHY0gOhkin4p+GTfPkuxscKC+MbrN2XdvZn9Pp kxuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PRliwF0o7oV85eapVBALB7fOMkMAiSkW6Oy/YS7Oo7U=; b=ESy191y8TjdZnq3s9v0nqDf650jqqGMACrbtOADaw6rLde35AH8IcZ3P3rlZ773ta1 ZUGheeAyq8NcCaNywRQbaGSRmZkKItquymy2SOXVcMiq/JPsAPzefsLD0BpNd4ntYktQ y9Wnrv6Xx9BkFjKyiNyKxsvl45v55MhNMcGqwnPuH0UTCmavBeBm9fxhNle6nHzZbnsZ 8V1E13xQO+WsbgSnSEqt63eSFlGVpyj9aucDQ+1cEPXDepS7/pIuTknkhqnjB3FDE6fW M123779FtGEjZ6CO45U72mdqBxLHJgKCj7SsD6Qh4N+/HALS/V6aj9Aq67BG5sC0Xdvl pQUg== X-Gm-Message-State: ANoB5pl5J/xy3lEeKoHVhND9G8sdBtb6hKIQah7F3y8nfJtp2Kav5z4U 29g9JZsrrA751mLjYbFVZNY= X-Received: by 2002:a17:903:268f:b0:189:dfb0:d380 with SMTP id jf15-20020a170903268f00b00189dfb0d380mr1842759plb.33.1670487114241; Thu, 08 Dec 2022 00:11:54 -0800 (PST) Received: from XH22050090-L.ad.ts.tri-ad.global ([103.175.111.222]) by smtp.gmail.com with ESMTPSA id b12-20020a1709027e0c00b00188f07c9eedsm15735729plm.176.2022.12.08.00.11.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 00:11:53 -0800 (PST) Sender: Vincent Mailhol From: Vincent Mailhol To: Marc Kleine-Budde , linux-can@vger.kernel.org Cc: Martin Elshuber , Jakob Unterwurzacher , Maximilian Schneider , Peter Fink , Jeroen Hofstee , =?UTF-8?q?Christoph=20M=C3=B6hring?= , John Whittington , Vasanth Sadhasivan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Mailhol Subject: [PATCH 0/2] can: usb: remove pointers to struct usb_interface in device's priv structures Date: Thu, 8 Dec 2022 17:11:40 +0900 Message-Id: <20221208081142.16936-1-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The gs_can and ucan drivers keep a pointer to struct usb_interface in their private structure. This is not needed. For gs_can the only use is to retrieve struct usb_device, which is already available in gs_usb::udev. For ucan, the field is set but never used. Remove the struct usb_interface fields and clean up. Vincent Mailhol (2): can: ucan: remove unused ucan_priv::intf can: gs_usb: remove gs_can::iface drivers/net/can/usb/gs_usb.c | 29 +++++++++-------------------- drivers/net/can/usb/ucan.c | 2 -- 2 files changed, 9 insertions(+), 22 deletions(-) -- 2.25.1