public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: tglx@linutronix.de
To: uclinux-v850@lsi.nec.co.jp
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 6/10] V850:  C99 initializers for hw_interrupt_type structures
Date: Sun, 27 Feb 2005 00:56:34 +0100 (CET)	[thread overview]
Message-ID: <20050227010020.6.patchmail@tglx> (raw)
In-Reply-To: 20050227005956.1.patchmail@tglx

Convert the initializers of hw_interrupt_type structures to C99 initializers.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 irq.c   |   14 +++++++-------
 setup.c |   14 +++++++-------
 sim.c   |   14 +++++++-------
 3 files changed, 21 insertions(+), 21 deletions(-)
---
diff -urN 2.6.11-rc5.orig/arch/v850/kernel/irq.c 2.6.11-rc5/arch/v850/kernel/irq.c
--- 2.6.11-rc5.orig/arch/v850/kernel/irq.c	2004-12-24 22:35:24.000000000 +0100
+++ 2.6.11-rc5/arch/v850/kernel/irq.c	2005-02-26 20:54:19.000000000 +0100
@@ -67,13 +67,13 @@
 #define end_none	enable_none
 
 struct hw_interrupt_type no_irq_type = {
-	"none",
-	startup_none,
-	shutdown_none,
-	enable_none,
-	disable_none,
-	ack_none,
-	end_none
+	.typename = "none",
+	.startup = startup_none,
+	.shutdown = shutdown_none,
+	.enable = enable_none,
+	.disable = disable_none,
+	.ack = ack_none,
+	.end = end_none
 };
 
 volatile unsigned long irq_err_count, spurious_count;
diff -urN 2.6.11-rc5.orig/arch/v850/kernel/setup.c 2.6.11-rc5/arch/v850/kernel/setup.c
--- 2.6.11-rc5.orig/arch/v850/kernel/setup.c	2004-12-24 22:34:32.000000000 +0100
+++ 2.6.11-rc5/arch/v850/kernel/setup.c	2005-02-26 20:54:19.000000000 +0100
@@ -128,13 +128,13 @@
 }
 
 static struct hw_interrupt_type nmi_irq_type = {
-	"NMI",
-	irq_zero,		/* startup */
-	irq_nop,		/* shutdown */
-	irq_nop,		/* enable */
-	irq_nop,		/* disable */
-	irq_nop,		/* ack */
-	nmi_end,		/* end */
+	.typename = "NMI",
+	.startup = irq_zero,		/* startup */
+	.shutdown = irq_nop,		/* shutdown */
+	.enable = irq_nop,		/* enable */
+	.disable = irq_nop,		/* disable */
+	.ack = irq_nop,		/* ack */
+	.end = nmi_end,		/* end */
 };
 
 void __init init_IRQ (void)
diff -urN 2.6.11-rc5.orig/arch/v850/kernel/sim.c 2.6.11-rc5/arch/v850/kernel/sim.c
--- 2.6.11-rc5.orig/arch/v850/kernel/sim.c	2004-12-24 22:35:24.000000000 +0100
+++ 2.6.11-rc5/arch/v850/kernel/sim.c	2005-02-26 20:54:19.000000000 +0100
@@ -73,13 +73,13 @@
 static unsigned irq_zero (unsigned irq) { return 0; }
 
 static struct hw_interrupt_type sim_irq_type = {
-	"IRQ",
-	irq_zero,		/* startup */
-	irq_nop,		/* shutdown */
-	irq_nop,		/* enable */
-	irq_nop,		/* disable */
-	irq_nop,		/* ack */
-	irq_nop,		/* end */
+	.typename = "IRQ",
+	.startup = irq_zero,		/* startup */
+	.shutdown = irq_nop,		/* shutdown */
+	.enable = irq_nop,		/* enable */
+	.disable = irq_nop,		/* disable */
+	.ack = irq_nop,		/* ack */
+	.end = irq_nop,		/* end */
 };
 
 void __init mach_init_irqs (void)

  parent reply	other threads:[~2005-02-27  0:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-26 23:56 [PATCH 1/10] PPC: C99 initializers for hw_interrupt_type structures tglx
2005-02-26 23:56 ` [PATCH 2/10] M32R: " tglx
2005-02-26 23:56 ` [PATCH 3/10] SH: " tglx
2005-02-26 23:56 ` [PATCH 4/10] PPC64: " tglx
2005-02-26 23:56 ` [PATCH 5/10] MIPS: " tglx
2005-02-28 13:40   ` Ralf Baechle
2005-02-26 23:56 ` tglx [this message]
2005-02-26 23:56 ` [PATCH 7/10] I386: " tglx
2005-02-26 23:56 ` [PATCH 8/10] SH64: " tglx
2005-02-26 23:56 ` [PATCH 9/10] X86_64: " tglx
2005-02-26 23:56 ` [PATCH 10/10] IA64: " tglx
2005-02-28 17:14   ` Jesse Barnes

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=20050227010020.6.patchmail@tglx \
    --to=tglx@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=uclinux-v850@lsi.nec.co.jp \
    /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