Commit caa6e213 authored by CaT's avatar CaT Committed by Greg Kroah-Hartman

[PATCH] USB: C99: 2.6.0-t3-bk7/Documentation

parent 2492b740
......@@ -111,12 +111,12 @@
</para>
<programlisting>
static struct usb_driver skel_driver = {
name: "skeleton",
probe: skel_probe,
disconnect: skel_disconnect,
fops: &amp;skel_fops,
minor: USB_SKEL_MINOR_BASE,
id_table: skel_table,
.name = "skeleton",
.probe = skel_probe,
.disconnect = skel_disconnect,
.fops = &amp;skel_fops,
.minor = USB_SKEL_MINOR_BASE,
.id_table = skel_table,
};
</programlisting>
<para>
......
......@@ -122,17 +122,17 @@ Drivers that connect directly to the USB subsystem should be declared
something like this:
static struct usb_driver mydriver = {
name: "mydriver",
id_table: mydriver_id_table,
probe: my_probe,
disconnect: my_disconnect,
.name = "mydriver",
.id_table = mydriver_id_table,
.probe = my_probe,
.disconnect = my_disconnect,
/*
if using the usb chardev framework:
minor: MY_USB_MINOR_START,
fops: my_file_ops,
.minor = MY_USB_MINOR_START,
.fops = my_file_ops,
if exposing any operations through usbdevfs:
ioctl: my_ioctl,
.ioctl = my_ioctl,
*/
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment