linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Art Haas <ahaas@airmail.net>
To: linux-fbdev-devel@lists.sourceforge.net, jsimmons@infradead.org,
	geert@linux-m68k.org
Cc: Linus Torvalds <torvalds@transmeta.com>
Subject: [PATCH] C99 initializers for drivers/video/console
Date: Thu, 2 Jan 2003 16:32:39 -0600	[thread overview]
Message-ID: <20030102223239.GF23213@pcdebian.artsapartment.org> (raw)

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

             reply	other threads:[~2003-01-02 22:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-02 22:32 Art Haas [this message]
2003-01-06 21:52 ` [PATCH] C99 initializers for drivers/video/console James Simmons

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=20030102223239.GF23213@pcdebian.artsapartment.org \
    --to=ahaas@airmail.net \
    --cc=geert@linux-m68k.org \
    --cc=jsimmons@infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=torvalds@transmeta.com \
    /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;
as well as URLs for NNTP newsgroup(s).