diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-06-21 20:15:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 21:46:27 -0400 |
commit | 6b7feecb2f8fcab184a38916d10349bd6648e0bc (patch) | |
tree | 5c51827e85eff96d6c50b41fea428bcf0f1ba71a /include/asm-ppc64/iSeries/iSeries_irq.h | |
parent | fcee38952609fccb2bdfe166b3b96bd75a292aa6 (diff) |
[PATCH] ppc64 iSeries: obvious code simplifications
This patch does some obvious code cleanups in the iSeries headers files.
- simplifies the bodies of lots of inline functions
- parenthesises a macros result
- removes C++ wrapping
- adds "extern" to some function declarations
There are no semantic changes.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc64/iSeries/iSeries_irq.h')
-rw-r--r-- | include/asm-ppc64/iSeries/iSeries_irq.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/include/asm-ppc64/iSeries/iSeries_irq.h b/include/asm-ppc64/iSeries/iSeries_irq.h index ff8ddede038c..fbd5f523ba1d 100644 --- a/include/asm-ppc64/iSeries/iSeries_irq.h +++ b/include/asm-ppc64/iSeries/iSeries_irq.h | |||
@@ -1,19 +1,11 @@ | |||
1 | #ifndef __ISERIES_IRQ_H__ | 1 | #ifndef __ISERIES_IRQ_H__ |
2 | #define __ISERIES_IRQ_H__ | 2 | #define __ISERIES_IRQ_H__ |
3 | 3 | ||
4 | #ifdef __cplusplus | 4 | extern void iSeries_init_IRQ(void); |
5 | extern "C" { | 5 | extern int iSeries_allocate_IRQ(HvBusNumber, HvSubBusNumber, HvAgentId); |
6 | #endif | 6 | extern int iSeries_assign_IRQ(int, HvBusNumber, HvSubBusNumber, HvAgentId); |
7 | extern void iSeries_activate_IRQs(void); | ||
7 | 8 | ||
8 | void iSeries_init_IRQ(void); | 9 | extern int XmPciLpEvent_init(void); |
9 | int iSeries_allocate_IRQ(HvBusNumber, HvSubBusNumber, HvAgentId); | ||
10 | int iSeries_assign_IRQ(int, HvBusNumber, HvSubBusNumber, HvAgentId); | ||
11 | void iSeries_activate_IRQs(void); | ||
12 | |||
13 | int XmPciLpEvent_init(void); | ||
14 | |||
15 | #ifdef __cplusplus | ||
16 | } | ||
17 | #endif | ||
18 | 10 | ||
19 | #endif /* __ISERIES_IRQ_H__ */ | 11 | #endif /* __ISERIES_IRQ_H__ */ |