Skip to content

Commit aecd456

Browse files
KAGA-KOKOLinus Torvalds
authored andcommitted
[PATCH] V850: C99 initializers for hw_interrupt_type structures
Convert the initializers of hw_interrupt_type structures to C99 initializers. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 08d0fd0 commit aecd456

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎arch/v850/kernel/irq.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ static void ack_none(unsigned int irq)
6767
#define end_none enable_none
6868

6969
struct hw_interrupt_type no_irq_type = {
70-
"none",
71-
startup_none,
72-
shutdown_none,
73-
enable_none,
74-
disable_none,
75-
ack_none,
76-
end_none
70+
.typename = "none",
71+
.startup = startup_none,
72+
.shutdown = shutdown_none,
73+
.enable = enable_none,
74+
.disable = disable_none,
75+
.ack = ack_none,
76+
.end = end_none
7777
};
7878

7979
volatile unsigned long irq_err_count, spurious_count;

‎arch/v850/kernel/setup.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ static void nmi_end (unsigned irq)
138138
}
139139

140140
static struct hw_interrupt_type nmi_irq_type = {
141-
"NMI",
142-
irq_zero, /* startup */
143-
irq_nop, /* shutdown */
144-
irq_nop, /* enable */
145-
irq_nop, /* disable */
146-
irq_nop, /* ack */
147-
nmi_end, /* end */
141+
.typename = "NMI",
142+
.startup = irq_zero, /* startup */
143+
.shutdown = irq_nop, /* shutdown */
144+
.enable = irq_nop, /* enable */
145+
.disable = irq_nop, /* disable */
146+
.ack = irq_nop, /* ack */
147+
.end = nmi_end, /* end */
148148
};
149149

150150
void __init init_IRQ (void)

‎arch/v850/kernel/sim.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ static void irq_nop (unsigned irq) { }
7373
static unsigned irq_zero (unsigned irq) { return 0; }
7474

7575
static struct hw_interrupt_type sim_irq_type = {
76-
"IRQ",
77-
irq_zero, /* startup */
78-
irq_nop, /* shutdown */
79-
irq_nop, /* enable */
80-
irq_nop, /* disable */
81-
irq_nop, /* ack */
82-
irq_nop, /* end */
76+
.typename = "IRQ",
77+
.startup = irq_zero, /* startup */
78+
.shutdown = irq_nop, /* shutdown */
79+
.enable = irq_nop, /* enable */
80+
.disable = irq_nop, /* disable */
81+
.ack = irq_nop, /* ack */
82+
.end = irq_nop, /* end */
8383
};
8484

8585
void __init mach_init_irqs (void)

0 commit comments

Comments
 (0)