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/au1000 | |
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/au1000')
-rw-r--r-- | arch/mips/au1000/common/irq.c | 60 |
1 files changed, 28 insertions, 32 deletions
diff --git a/arch/mips/au1000/common/irq.c b/arch/mips/au1000/common/irq.c index d1eb5a4a9a19..0b912f739feb 100644 --- a/arch/mips/au1000/common/irq.c +++ b/arch/mips/au1000/common/irq.c | |||
@@ -253,47 +253,43 @@ void restore_local_and_enable(int controller, unsigned long mask) | |||
253 | 253 | ||
254 | 254 | ||
255 | static struct hw_interrupt_type rise_edge_irq_type = { | 255 | static struct hw_interrupt_type rise_edge_irq_type = { |
256 | "Au1000 Rise Edge", | 256 | .typename = "Au1000 Rise Edge", |
257 | startup_irq, | 257 | .startup = startup_irq, |
258 | shutdown_irq, | 258 | .shutdown = shutdown_irq, |
259 | local_enable_irq, | 259 | .enable = local_enable_irq, |
260 | local_disable_irq, | 260 | .disable = local_disable_irq, |
261 | mask_and_ack_rise_edge_irq, | 261 | .ack = mask_and_ack_rise_edge_irq, |
262 | end_irq, | 262 | .end = end_irq, |
263 | NULL | ||
264 | }; | 263 | }; |
265 | 264 | ||
266 | static struct hw_interrupt_type fall_edge_irq_type = { | 265 | static struct hw_interrupt_type fall_edge_irq_type = { |
267 | "Au1000 Fall Edge", | 266 | .typename = "Au1000 Fall Edge", |
268 | startup_irq, | 267 | .startup = startup_irq, |
269 | shutdown_irq, | 268 | .shutdown = shutdown_irq, |
270 | local_enable_irq, | 269 | .enable = local_enable_irq, |
271 | local_disable_irq, | 270 | .disable = local_disable_irq, |
272 | mask_and_ack_fall_edge_irq, | 271 | .ack = mask_and_ack_fall_edge_irq, |
273 | end_irq, | 272 | .end = end_irq, |
274 | NULL | ||
275 | }; | 273 | }; |
276 | 274 | ||
277 | static struct hw_interrupt_type either_edge_irq_type = { | 275 | static struct hw_interrupt_type either_edge_irq_type = { |
278 | "Au1000 Rise or Fall Edge", | 276 | .typename = "Au1000 Rise or Fall Edge", |
279 | startup_irq, | 277 | .startup = startup_irq, |
280 | shutdown_irq, | 278 | .shutdown = shutdown_irq, |
281 | local_enable_irq, | 279 | .enable = local_enable_irq, |
282 | local_disable_irq, | 280 | .disable = local_disable_irq, |
283 | mask_and_ack_either_edge_irq, | 281 | .ack = mask_and_ack_either_edge_irq, |
284 | end_irq, | 282 | .end = end_irq, |
285 | NULL | ||
286 | }; | 283 | }; |
287 | 284 | ||
288 | static struct hw_interrupt_type level_irq_type = { | 285 | static struct hw_interrupt_type level_irq_type = { |
289 | "Au1000 Level", | 286 | .typename = "Au1000 Level", |
290 | startup_irq, | 287 | .startup = startup_irq, |
291 | shutdown_irq, | 288 | .shutdown = shutdown_irq, |
292 | local_enable_irq, | 289 | .enable = local_enable_irq, |
293 | local_disable_irq, | 290 | .disable = local_disable_irq, |
294 | mask_and_ack_level_irq, | 291 | .ack = mask_and_ack_level_irq, |
295 | end_irq, | 292 | .end = end_irq, |
296 | NULL | ||
297 | }; | 293 | }; |
298 | 294 | ||
299 | #ifdef CONFIG_PM | 295 | #ifdef CONFIG_PM |