diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-02-28 08:39:57 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:46 -0400 |
commit | 8ab00b9a02c55fd6263c5f7c0dc88389d94de327 (patch) | |
tree | 0893140cd9b2c80198950f3cd1b8053f951ca729 /arch/mips/ite-boards | |
parent | d437441ef5336874e934bd53a03159a584efe95a (diff) |
Convert struct hw_interrupt_type initializations to ISO C99 named
initializers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ite-boards')
-rw-r--r-- | arch/mips/ite-boards/generic/irq.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/arch/mips/ite-boards/generic/irq.c b/arch/mips/ite-boards/generic/irq.c index cb71b9024d6f..16014e6ebf50 100644 --- a/arch/mips/ite-boards/generic/irq.c +++ b/arch/mips/ite-boards/generic/irq.c | |||
@@ -138,14 +138,13 @@ static void end_ite_irq(unsigned int irq) | |||
138 | } | 138 | } |
139 | 139 | ||
140 | static struct hw_interrupt_type it8172_irq_type = { | 140 | static struct hw_interrupt_type it8172_irq_type = { |
141 | "ITE8172", | 141 | .typename = "ITE8172", |
142 | startup_ite_irq, | 142 | .startup = startup_ite_irq, |
143 | shutdown_ite_irq, | 143 | .shutdown = shutdown_ite_irq, |
144 | enable_it8172_irq, | 144 | .enable = enable_it8172_irq, |
145 | disable_it8172_irq, | 145 | .disable = disable_it8172_irq, |
146 | mask_and_ack_ite_irq, | 146 | .ack = mask_and_ack_ite_irq, |
147 | end_ite_irq, | 147 | .end = end_ite_irq, |
148 | NULL | ||
149 | }; | 148 | }; |
150 | 149 | ||
151 | 150 | ||
@@ -159,13 +158,13 @@ static void ack_none(unsigned int irq) { } | |||
159 | #define end_none enable_none | 158 | #define end_none enable_none |
160 | 159 | ||
161 | static struct hw_interrupt_type cp0_irq_type = { | 160 | static struct hw_interrupt_type cp0_irq_type = { |
162 | "CP0 Count", | 161 | .typename = "CP0 Count", |
163 | startup_none, | 162 | .startup = startup_none, |
164 | shutdown_none, | 163 | .shutdown = shutdown_none, |
165 | enable_none, | 164 | .enable = enable_none, |
166 | disable_none, | 165 | .disable = disable_none, |
167 | ack_none, | 166 | .ack = ack_none, |
168 | end_none | 167 | .end = end_none |
169 | }; | 168 | }; |
170 | 169 | ||
171 | void enable_cpu_timer(void) | 170 | void enable_cpu_timer(void) |