linux/drivers/net/can/usb
Yajun Deng 49a78b05d5 USB: core: Use device_driver directly in struct usb_driver and usb_device_driver
There is usbdrv_wrap in struct usb_driver and usb_device_driver, it
contains device_driver and for_devices. for_devices is used to
distinguish between device drivers and interface drivers.

Like the is_usb_device(), it tests the type of the device. We can test
that if the probe of device_driver is equal to usb_probe_device in
is_usb_device_driver(), and then the struct usbdrv_wrap is no longer
needed.

Clean up struct usbdrv_wrap, use device_driver directly in struct
usb_driver and usb_device_driver. This makes the code cleaner.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20240104032822.1896596-1-yajun.deng@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-04 16:06:32 +01:00
..
etas_es58x can: etas_es58x: add missing a blank line after declaration 2023-10-04 11:46:25 +02:00
kvaser_usb can: kvaser_usb: Add len8_dlc support 2023-05-22 20:21:30 +02:00
peak_usb USB: core: Use device_driver directly in struct usb_driver and usb_device_driver 2024-01-04 16:06:32 +01:00
ems_usb.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
esd_usb.c can: esd_usb: Add support for esd CAN-USB/3 2023-08-03 09:24:30 +02:00
f81604.c can: usb: f81604: add Fintek F81604 support 2023-05-15 22:53:49 +02:00
gs_usb.c can: gs_usb: convert to NAPI/rx-offload to avoid OoO reception 2023-07-28 09:45:25 +02:00
Kconfig can: gs_usb: convert to NAPI/rx-offload to avoid OoO reception 2023-07-28 09:45:25 +02:00
Makefile can: usb: f81604: add Fintek F81604 support 2023-05-15 22:53:49 +02:00
mcba_usb.c can: mcba_usb: Fix termination command argument 2022-11-24 16:26:48 +01:00
ucan.c can: ucan: Remove repeated word 2023-07-19 09:04:36 +02:00
usb_8dev.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00