OSDN Git Service

can: gs_usb: remove gs_can::iface
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Thu, 8 Dec 2022 08:11:42 +0000 (17:11 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 12 Dec 2022 10:41:25 +0000 (11:41 +0100)
commit56c56a309e7959c319d3cbd6bd16e598ecd5831c
tree59614c48c02b55b0cff4127ca6bc9173260379d2
parentf54b101ddeaea68fe7e52e842deb8b7a081bf156
can: gs_usb: remove gs_can::iface

The iface field of struct gs_can is only used to retrieve the
usb_device which is already available in gs_can::udev.

Replace each occurrence of interface_to_usbdev(dev->iface) with
dev->udev. This done, remove gs_can::iface.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20221208081142.16936-3-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c