From: Art Haas <ahaas@airmail.net>
To: Theodore Ts'o <tytso@mit.edu>, linux-serial@vger.kernel.org
Cc: Linus Torvalds <torvalds@transmeta.com>
Subject: [PATCH] C99 initializers for drivers/serial
Date: Mon, 18 Nov 2002 11:32:16 -0600 [thread overview]
Message-ID: <20021118173216.GN4228@debian> (raw)
Hi.
Here's a set of patches that switch drivers/serial to use C99
initializers. The patches are against 2.5.48.
Art Haas
--- linux-2.5.48/drivers/serial/68328serial.c.old 2002-11-11 07:14:48.000000000 -0600
+++ linux-2.5.48/drivers/serial/68328serial.c 2002-11-18 01:09:28.000000000 -0600
@@ -1682,12 +1682,12 @@
static struct console m68328_driver = {
- name: "ttyS",
- write: m68328_console_write,
- device: m68328_console_device,
- setup: m68328_console_setup,
- flags: CON_PRINTBUFFER,
- index: -1,
+ .name = "ttyS",
+ .write = m68328_console_write,
+ .device = m68328_console_device,
+ .setup = m68328_console_setup,
+ .flags = CON_PRINTBUFFER,
+ .index = -1,
};
--- linux-2.5.48/drivers/serial/68360serial.c.old 2002-11-11 07:14:48.000000000 -0600
+++ linux-2.5.48/drivers/serial/68360serial.c 2002-11-18 01:09:28.000000000 -0600
@@ -2566,13 +2566,13 @@
struct console sercons = {
- name: "ttyS",
- write: serial_console_write,
- device: serial_console_device,
- wait_key: serial_console_wait_key,
- setup: serial_console_setup,
- flags: CON_PRINTBUFFER,
- index: CONFIG_SERIAL_CONSOLE_PORT,
+ .name = "ttyS",
+ .write = serial_console_write,
+ .device = serial_console_device,
+ .wait_key = serial_console_wait_key,
+ .setup = serial_console_setup,
+ .flags = CON_PRINTBUFFER,
+ .index = CONFIG_SERIAL_CONSOLE_PORT,
};
--- linux-2.5.48/drivers/serial/8250_gsc.c.old 2002-11-05 09:33:46.000000000 -0600
+++ linux-2.5.48/drivers/serial/8250_gsc.c 2002-11-18 01:09:28.000000000 -0600
@@ -112,15 +112,15 @@
MODULE_DEVICE_TABLE(parisc, serial_tbl);
static struct parisc_driver serial1_driver = {
- name: "Serial RS232",
- id_table: serial1_tbl,
- probe: serial_init_chip,
+ .name = "Serial RS232",
+ .id_table = serial1_tbl,
+ .probe = serial_init_chip,
};
static struct parisc_driver serial_driver = {
- name: "Serial RS232",
- id_table: serial_tbl,
- probe: serial_init_chip,
+ .name = "Serial RS232",
+ .id_table = serial_tbl,
+ .probe = serial_init_chip,
};
int __init probe_serial_gsc(void)
--- linux-2.5.48/drivers/serial/mcfserial.c.old 2002-11-11 07:14:48.000000000 -0600
+++ linux-2.5.48/drivers/serial/mcfserial.c 2002-11-18 01:09:28.000000000 -0600
@@ -1853,12 +1853,12 @@
*/
struct console mcfrs_console = {
- name: "ttyS",
- write: mcfrs_console_write,
- device: mcfrs_console_device,
- setup: mcfrs_console_setup,
- flags: CON_PRINTBUFFER,
- index: -1,
+ .name = "ttyS",
+ .write = mcfrs_console_write,
+ .device = mcfrs_console_device,
+ .setup = mcfrs_console_setup,
+ .flags = CON_PRINTBUFFER,
+ .index = -1,
};
void __init mcfrs_console_init(void)
--- linux-2.5.48/drivers/serial/nb85e_uart.c.old 2002-11-11 07:14:48.000000000 -0600
+++ linux-2.5.48/drivers/serial/nb85e_uart.c 2002-11-18 01:09:28.000000000 -0600
@@ -255,12 +255,12 @@
static struct console nb85e_uart_cons =
{
- name: "ttyS",
- write: nb85e_uart_cons_write,
- device: nb85e_uart_cons_device,
- flags: CON_PRINTBUFFER,
- cflag: NB85E_UART_INIT_CFLAGS,
- index: -1,
+ .name = "ttyS",
+ .write = nb85e_uart_cons_write,
+ .device = nb85e_uart_cons_device,
+ .flags = CON_PRINTBUFFER,
+ .cflag = NB85E_UART_INIT_CFLAGS,
+ .index = -1,
};
void nb85e_uart_cons_init (unsigned chan)
--- linux-2.5.48/drivers/serial/uart00.c.old 2002-11-11 07:14:48.000000000 -0600
+++ linux-2.5.48/drivers/serial/uart00.c 2002-11-18 07:56:48.000000000 -0600
@@ -731,9 +731,9 @@
}
struct pld_hotswap_ops uart00_pldhs_ops={
- name: "uart00",
- add_device: uart00_add_device,
- remove_devices:uart00_remove_devices,
+ .name = "uart00",
+ .add_device = uart00_add_device,
+ .remove_devices = uart00_remove_devices,
};
#endif
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759
reply other threads:[~2002-11-18 17: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=20021118173216.GN4228@debian \
--to=ahaas@airmail.net \
--cc=linux-serial@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=tytso@mit.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.