From: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
To: Marc Kleine-Budde <mkl@pengutronix.de>, linux-can@vger.kernel.org
Cc: "Martin Elshuber" <martin.elshuber@theobroma-systems.com>,
"Jakob Unterwurzacher"
<jakob.unterwurzacher@theobroma-systems.com>,
"Maximilian Schneider" <mws@schneidersoft.net>,
"Peter Fink" <pfink@christ-es.de>,
"Jeroen Hofstee" <jhofstee@victronenergy.com>,
"Christoph Möhring" <cmoehring@christ-es.de>,
"John Whittington" <git@jbrengineering.co.uk>,
"Vasanth Sadhasivan" <vasanth.sadhasivan@samsara.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
"Vincent Mailhol" <mailhol.vincent@wanadoo.fr>
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 [thread overview]
Message-ID: <20221208081142.16936-1-mailhol.vincent@wanadoo.fr> (raw)
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
next reply other threads:[~2022-12-08 8:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 8:11 Vincent Mailhol [this message]
2022-12-08 8:11 ` [PATCH 1/2] can: ucan: remove unused ucan_priv::intf Vincent Mailhol
2022-12-08 8:11 ` [PATCH 2/2] can: gs_usb: remove gs_can::iface Vincent Mailhol
2022-12-08 9:10 ` [PATCH 0/2] can: usb: remove pointers to struct usb_interface in device's priv structures Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221208081142.16936-1-mailhol.vincent@wanadoo.fr \
--to=mailhol.vincent@wanadoo.fr \
--cc=cmoehring@christ-es.de \
--cc=git@jbrengineering.co.uk \
--cc=jakob.unterwurzacher@theobroma-systems.com \
--cc=jhofstee@victronenergy.com \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.elshuber@theobroma-systems.com \
--cc=mkl@pengutronix.de \
--cc=mws@schneidersoft.net \
--cc=netdev@vger.kernel.org \
--cc=pfink@christ-es.de \
--cc=vasanth.sadhasivan@samsara.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).