From: CaT <cat@zip.com.au>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 1/10] 2.6.0-t3: struct C99 initialiser conversion
Date: Tue, 19 Aug 2003 16:33:47 +1000 [thread overview]
Message-ID: <20030819063347.GG643@zip.com.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 151 bytes --]
linux/Documentation/ patch
--
"How can I not love the Americans? They helped me with a flat tire the
other day," he said.
- http://tinyurl.com/h6fo
[-- Attachment #2: 2.6.0-t3.c99.Documentation.patch --]
[-- Type: text/plain, Size: 1681 bytes --]
diff -aur linux.backup/Documentation/DocBook/writing_usb_driver.tmpl linux/Documentation/DocBook/writing_usb_driver.tmpl
--- linux.backup/Documentation/DocBook/writing_usb_driver.tmpl Thu Oct 31 11:42:55 2002
+++ linux/Documentation/DocBook/writing_usb_driver.tmpl Sat Aug 16 15:45:01 2003
@@ -111,12 +111,12 @@
</para>
<programlisting>
static struct usb_driver skel_driver = {
- name: "skeleton",
- probe: skel_probe,
- disconnect: skel_disconnect,
- fops: &skel_fops,
- minor: USB_SKEL_MINOR_BASE,
- id_table: skel_table,
+ .name = "skeleton",
+ .probe = skel_probe,
+ .disconnect = skel_disconnect,
+ .fops = &skel_fops,
+ .minor = USB_SKEL_MINOR_BASE,
+ .id_table = skel_table,
};
</programlisting>
<para>
diff -aur linux.backup/Documentation/usb/hotplug.txt linux/Documentation/usb/hotplug.txt
--- linux.backup/Documentation/usb/hotplug.txt Mon Jan 27 13:43:40 2003
+++ linux/Documentation/usb/hotplug.txt Sat Aug 16 15:45:01 2003
@@ -122,17 +122,17 @@
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,
*/
}
reply other threads:[~2003-08-19 6:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030819063347.GG643@zip.com.au \
--to=cat@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox