From: Philipp Hortmann Date: Mon, 25 Oct 2021 05:09:46 +0000 (+0200) Subject: Docs: usb: update struct usb_driver X-Git-Tag: v6.6.17~8915^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=296ecb351599286270c8ecc7b780b67a61e5d085;p=platform%2Fkernel%2Flinux-rpi.git Docs: usb: update struct usb_driver update struct usb_driver from usb-skeleton.c. Signed-off-by: Philipp Hortmann Link: https://lore.kernel.org/r/8084ad0e369d4e0bf10598292ee4bac46d09d03d.1635138058.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/Documentation/driver-api/usb/writing_usb_driver.rst b/Documentation/driver-api/usb/writing_usb_driver.rst index 2176297..a511c6f 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, };