* [PATCH] C99 initializers for drivers/video/console
@ 2003-01-02 22:32 Art Haas
2003-01-06 21:52 ` James Simmons
0 siblings, 1 reply; 2+ messages in thread
From: Art Haas @ 2003-01-02 22:32 UTC (permalink / raw)
To: linux-fbdev-devel, jsimmons, geert; +Cc: Linus Torvalds
Hi.
Here are patches for two files in drivers/video/console that switch the
files to use C99 initializers. The patches are against 2.5.54.
Art Haas
--- linux-2.5.54/drivers/video/console/sticon.c.old 2003-01-02 07:35:51.000000000 -0600
+++ linux-2.5.54/drivers/video/console/sticon.c 2003-01-02 15:58:58.000000000 -0600
@@ -365,26 +365,26 @@
}
struct consw sti_con = {
- con_startup: sticon_startup,
- con_init: sticon_init,
- con_deinit: sticon_deinit,
- con_clear: sticon_clear,
- con_putc: sticon_putc,
- con_putcs: sticon_putcs,
- con_cursor: sticon_cursor,
- con_scroll: sticon_scroll,
- con_bmove: sticon_bmove,
- con_switch: sticon_switch,
- con_blank: sticon_blank,
- con_font_op: sticon_font_op,
- con_set_palette: sticon_set_palette,
- con_scrolldelta: sticon_scrolldelta,
- con_set_origin: sticon_set_origin,
- con_save_screen: sticon_save_screen,
- con_build_attr: sticon_build_attr,
- con_invert_region: sticon_invert_region,
- con_screen_pos: sticon_screen_pos,
- con_getxy: sticon_getxy,
+ .con_startup = sticon_startup,
+ .con_init = sticon_init,
+ .con_deinit = sticon_deinit,
+ .con_clear = sticon_clear,
+ .con_putc = sticon_putc,
+ .con_putcs = sticon_putcs,
+ .con_cursor = sticon_cursor,
+ .con_scroll = sticon_scroll,
+ .con_bmove = sticon_bmove,
+ .con_switch = sticon_switch,
+ .con_blank = sticon_blank,
+ .con_font_op = sticon_font_op,
+ .con_set_palette = sticon_set_palette,
+ .con_scrolldelta = sticon_scrolldelta,
+ .con_set_origin = sticon_set_origin,
+ .con_save_screen = sticon_save_screen,
+ .con_build_attr = sticon_build_attr,
+ .con_invert_region = sticon_invert_region,
+ .con_screen_pos = sticon_screen_pos,
+ .con_getxy = sticon_getxy,
};
--- linux-2.5.54/drivers/video/console/sticore.c.old 2003-01-02 07:35:51.000000000 -0600
+++ linux-2.5.54/drivers/video/console/sticore.c 2003-01-02 16:00:15.000000000 -0600
@@ -97,8 +97,8 @@
}
static const struct sti_conf_flags default_conf_flags = {
- wait: STI_WAIT,
- };
+ .wait = STI_WAIT,
+};
void
sti_inq_conf(struct sti_struct *sti)
@@ -118,8 +118,8 @@
}
static const struct sti_font_flags default_font_flags = {
- wait: STI_WAIT,
- non_text: 0,
+ .wait = STI_WAIT,
+ .non_text = 0,
};
void
--
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
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] C99 initializers for drivers/video/console
2003-01-02 22:32 [PATCH] C99 initializers for drivers/video/console Art Haas
@ 2003-01-06 21:52 ` James Simmons
0 siblings, 0 replies; 2+ messages in thread
From: James Simmons @ 2003-01-06 21:52 UTC (permalink / raw)
To: Art Haas; +Cc: Linux Fbdev development list, Geert Uytterhoeven
> Here are patches for two files in drivers/video/console that switch the
> files to use C99 initializers. The patches are against 2.5.54.
Applied.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-06 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-02 22:32 [PATCH] C99 initializers for drivers/video/console Art Haas
2003-01-06 21:52 ` James Simmons
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).