linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] can: usb: remove pointers to struct usb_interface in device's priv structures
@ 2022-12-08  8:11 Vincent Mailhol
  2022-12-08  8:11 ` [PATCH 1/2] can: ucan: remove unused ucan_priv::intf Vincent Mailhol
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vincent Mailhol @ 2022-12-08  8:11 UTC (permalink / raw)
  To: Marc Kleine-Budde, linux-can
  Cc: Martin Elshuber, Jakob Unterwurzacher, Maximilian Schneider,
	Peter Fink, Jeroen Hofstee, Christoph Möhring,
	John Whittington, Vasanth Sadhasivan, netdev, linux-kernel,
	Vincent Mailhol

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-08  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-08  8:11 [PATCH 0/2] can: usb: remove pointers to struct usb_interface in device's priv structures Vincent Mailhol
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

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).