]>
Commit | Line | Data |
---|---|---|
f1665087 | 1 | diff -aur linux.backup/Documentation/DocBook/writing_usb_driver.tmpl linux/Documentation/DocBook/writing_usb_driver.tmpl |
2 | --- linux.backup/Documentation/DocBook/writing_usb_driver.tmpl Thu Oct 31 11:42:55 2002 | |
3 | +++ linux/Documentation/DocBook/writing_usb_driver.tmpl Sat Aug 16 15:45:01 2003 | |
4 | @@ -111,12 +111,12 @@ | |
5 | </para> | |
6 | <programlisting> | |
7 | static struct usb_driver skel_driver = { | |
8 | - name: "skeleton", | |
9 | - probe: skel_probe, | |
10 | - disconnect: skel_disconnect, | |
11 | - fops: &skel_fops, | |
12 | - minor: USB_SKEL_MINOR_BASE, | |
13 | - id_table: skel_table, | |
14 | + .name = "skeleton", | |
15 | + .probe = skel_probe, | |
16 | + .disconnect = skel_disconnect, | |
17 | + .fops = &skel_fops, | |
18 | + .minor = USB_SKEL_MINOR_BASE, | |
19 | + .id_table = skel_table, | |
20 | }; | |
21 | </programlisting> | |
22 | <para> | |
23 | diff -aur linux.backup/Documentation/usb/hotplug.txt linux/Documentation/usb/hotplug.txt | |
24 | --- linux.backup/Documentation/usb/hotplug.txt Mon Jan 27 13:43:40 2003 | |
25 | +++ linux/Documentation/usb/hotplug.txt Sat Aug 16 15:45:01 2003 | |
26 | @@ -122,17 +122,17 @@ | |
27 | something like this: | |
28 | ||
29 | static struct usb_driver mydriver = { | |
30 | - name: "mydriver", | |
31 | - id_table: mydriver_id_table, | |
32 | - probe: my_probe, | |
33 | - disconnect: my_disconnect, | |
34 | + .name = "mydriver", | |
35 | + .id_table = mydriver_id_table, | |
36 | + .probe = my_probe, | |
37 | + .disconnect = my_disconnect, | |
38 | ||
39 | /* | |
40 | if using the usb chardev framework: | |
41 | - minor: MY_USB_MINOR_START, | |
42 | - fops: my_file_ops, | |
43 | + .minor = MY_USB_MINOR_START, | |
44 | + .fops = my_file_ops, | |
45 | if exposing any operations through usbdevfs: | |
46 | - ioctl: my_ioctl, | |
47 | + .ioctl = my_ioctl, | |
48 | */ | |
49 | } | |
50 |