diff options
author | Philipp Hortmann <philipp.g.hortmann@gmail.com> | 2021-10-25 07:09:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-25 09:14:58 +0200 |
commit | 296ecb351599286270c8ecc7b780b67a61e5d085 (patch) | |
tree | 6580e75286c4f918afa476e2b72f2e0a415502fe /Documentation/driver-api | |
parent | usb: gadget: configfs: change config attributes file operation (diff) | |
download | linux-296ecb351599286270c8ecc7b780b67a61e5d085.tar.xz linux-296ecb351599286270c8ecc7b780b67a61e5d085.zip |
Docs: usb: update struct usb_driver
update struct usb_driver from usb-skeleton.c.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/8084ad0e369d4e0bf10598292ee4bac46d09d03d.1635138058.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/driver-api')
-rw-r--r-- | Documentation/driver-api/usb/writing_usb_driver.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/driver-api/usb/writing_usb_driver.rst b/Documentation/driver-api/usb/writing_usb_driver.rst index 2176297e5765..a511c6fecf96 100644 --- a/Documentation/driver-api/usb/writing_usb_driver.rst +++ b/Documentation/driver-api/usb/writing_usb_driver.rst @@ -57,9 +57,12 @@ structure. The skeleton driver declares a :c:type:`usb_driver` as:: .name = "skeleton", .probe = skel_probe, .disconnect = skel_disconnect, - .fops = &skel_fops, - .minor = USB_SKEL_MINOR_BASE, + .suspend = skel_suspend, + .resume = skel_resume, + .pre_reset = skel_pre_reset, + .post_reset = skel_post_reset, .id_table = skel_table, + .supports_autosuspend = 1, }; |