]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: linux/usb.h: Correct the description of the usb_device_driver member
authorYi Cong <yicong@kylinos.cn>
Tue, 2 Dec 2025 09:09:48 +0000 (17:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 13:43:31 +0000 (14:43 +0100)
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>
include/linux/usb.h

index e85105939af8ee126461023c3bb8e3aabe251be4..fbfcc70b07fbe5dbaa1ca1be55af127c62294cf7 100644 (file)
@@ -1295,8 +1295,7 @@ struct usb_driver {
  *     resume and suspend functions will be called in addition to the driver's
  *     own, so this part of the setup does not need to be replicated.
  *
- * USB drivers must provide all the fields listed above except driver,
- * match, and id_table.
+ * USB device drivers must provide a name, other driver fields are optional.
  */
 struct usb_device_driver {
        const char *name;