diff options
| author | Yi Cong <yicong@kylinos.cn> | 2025-12-02 17:09:48 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-12-17 14:43:31 +0100 |
| commit | dd1fbe324a548e8057d5f3c72ce1a64a80f1753e (patch) | |
| tree | c584053e868d0b614c8af24b1397a2bd0d553138 /include/linux | |
| parent | 6811e0a08bdce6b2767414caf17fda24c2e4e032 (diff) | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index e85105939af8..fbfcc70b07fb 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -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; |
