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_pci.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_pci.h')
-rw-r--r-- | include/asm-ppc64/iSeries/iSeries_pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ppc64/iSeries/iSeries_pci.h b/include/asm-ppc64/iSeries/iSeries_pci.h index 9c6d64526d59..f45cd8a2e7be 100644 --- a/include/asm-ppc64/iSeries/iSeries_pci.h +++ b/include/asm-ppc64/iSeries/iSeries_pci.h | |||
@@ -55,7 +55,7 @@ struct iSeries_Device_Node; | |||
55 | */ | 55 | */ |
56 | 56 | ||
57 | #define ISERIES_PCI_AGENTID(idsel, func) \ | 57 | #define ISERIES_PCI_AGENTID(idsel, func) \ |
58 | ((idsel & 0x0F) << 4) | (func & 0x07) | 58 | (((idsel & 0x0F) << 4) | (func & 0x07)) |
59 | #define ISERIES_ENCODE_DEVICE(agentid) \ | 59 | #define ISERIES_ENCODE_DEVICE(agentid) \ |
60 | ((0x10) | ((agentid & 0x20) >> 2) | (agentid & 0x07)) | 60 | ((0x10) | ((agentid & 0x20) >> 2) | (agentid & 0x07)) |
61 | 61 | ||