Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: linux/usb.h: Correct the description of the usb_device_driver member

In the current kernel USB device driver code, only the name field is
required to be provided; all other fields are optional.

Correct this part of the description.

Signed-off-by: Yi Cong <yicong@kylinos.cn>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://patch.msgid.link/20251202090948.334809-1-cong.yi@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yi Cong and committed by
Greg Kroah-Hartman
dd1fbe32 6811e0a0

+1 -2
+1 -2
include/linux/usb.h
··· 1295 1295 * resume and suspend functions will be called in addition to the driver's 1296 1296 * own, so this part of the setup does not need to be replicated. 1297 1297 * 1298 - * USB drivers must provide all the fields listed above except driver, 1299 - * match, and id_table. 1298 + * USB device drivers must provide a name, other driver fields are optional. 1300 1299 */ 1301 1300 struct usb_device_driver { 1302 1301 const char *name;