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 @@ ...@@ -111,12 +111,12 @@
</para> </para>
<programlisting> <programlisting>
static struct usb_driver skel_driver = { static struct usb_driver skel_driver = {
name: "skeleton", .name = "skeleton",
probe: skel_probe, .probe = skel_probe,
disconnect: skel_disconnect, .disconnect = skel_disconnect,
fops: &amp;skel_fops, .fops = &amp;skel_fops,
minor: USB_SKEL_MINOR_BASE, .minor = USB_SKEL_MINOR_BASE,
id_table: skel_table, .id_table = skel_table,
}; };
</programlisting> </programlisting>
<para> <para>
......
...@@ -122,17 +122,17 @@ Drivers that connect directly to the USB subsystem should be declared ...@@ -122,17 +122,17 @@ Drivers that connect directly to the USB subsystem should be declared
something like this: something like this:
static struct usb_driver mydriver = { static struct usb_driver mydriver = {
name: "mydriver", .name = "mydriver",
id_table: mydriver_id_table, .id_table = mydriver_id_table,
probe: my_probe, .probe = my_probe,
disconnect: my_disconnect, .disconnect = my_disconnect,
/* /*
if using the usb chardev framework: if using the usb chardev framework:
minor: MY_USB_MINOR_START, .minor = MY_USB_MINOR_START,
fops: my_file_ops, .fops = my_file_ops,
if exposing any operations through usbdevfs: 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