Skip to contentSkip to conversation

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

PATCH In review Yi Cong 2 participants 2 messages Dec 2, 2025 USB

lore
Share & tools
lore

Yi Cong

author
#0 lore raw

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

From: Yi Cong <[email protected]>

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.

---
v2: update commit message

---
 include/linux/usb.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/usb.h +1 -2
index e85105939af8e..fbfcc70b07fbe 100644
@@ -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;
Signature · 1 line
2.25.1
Acked-by on v2 1/1
#1 lore raw
Quoted 5 lines · Yi Cong

From: Yi Cong <[email protected]>

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

Quoted 7 lines

Correct this part of the description.

---
v2: update commit message
---

Quoted 19 lines
 include/linux/usb.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/usb.h +1 -2
index e85105939af8e..fbfcc70b07fbe 100644
@@ -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;
Signature · 1 line
2.25.1