]> git.pld-linux.org Git - packages/kernel.git/blob - 2.6.0-t3.c99.Documentation-lkml.patch
- ported from linux-2.4.25-atmdd.patch
[packages/kernel.git] / 2.6.0-t3.c99.Documentation-lkml.patch
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:        &amp;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        = &amp;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  
This page took 0.030783 seconds and 3 git commands to generate.