diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2008-04-21 18:26:40 -0400 |
---|---|---|
committer | Jesper Juhl <juhl@hera.kernel.org> | 2008-04-21 18:26:40 -0400 |
commit | b1d18dc06ba6b9056f95aaf1f8c464830846f87f (patch) | |
tree | 2b7a9cff99c3e977f5455ec23334bdacd05291ae | |
parent | 3f76d9841e9cf6dd969ff3aec96476dced9c53f8 (diff) |
arm: Storage class should be before const qualifier
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
-rw-r--r-- | arch/arm/mach-pxa/mfp.c | 6 | ||||
-rw-r--r-- | include/asm-arm/hardware/iop3xx-adma.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-pxa/mfp.c b/arch/arm/mach-pxa/mfp.c index f5809adce298..9646b048f01c 100644 --- a/arch/arm/mach-pxa/mfp.c +++ b/arch/arm/mach-pxa/mfp.c | |||
@@ -42,7 +42,7 @@ struct pxa3xx_mfp_pin { | |||
42 | static struct pxa3xx_mfp_pin mfp_table[MFP_PIN_MAX]; | 42 | static struct pxa3xx_mfp_pin mfp_table[MFP_PIN_MAX]; |
43 | 43 | ||
44 | /* mapping of MFP_LPM_* definitions to MFPR_LPM_* register bits */ | 44 | /* mapping of MFP_LPM_* definitions to MFPR_LPM_* register bits */ |
45 | const static unsigned long mfpr_lpm[] = { | 45 | static const unsigned long mfpr_lpm[] = { |
46 | MFPR_LPM_INPUT, | 46 | MFPR_LPM_INPUT, |
47 | MFPR_LPM_DRIVE_LOW, | 47 | MFPR_LPM_DRIVE_LOW, |
48 | MFPR_LPM_DRIVE_HIGH, | 48 | MFPR_LPM_DRIVE_HIGH, |
@@ -52,7 +52,7 @@ const static unsigned long mfpr_lpm[] = { | |||
52 | }; | 52 | }; |
53 | 53 | ||
54 | /* mapping of MFP_PULL_* definitions to MFPR_PULL_* register bits */ | 54 | /* mapping of MFP_PULL_* definitions to MFPR_PULL_* register bits */ |
55 | const static unsigned long mfpr_pull[] = { | 55 | static const unsigned long mfpr_pull[] = { |
56 | MFPR_PULL_NONE, | 56 | MFPR_PULL_NONE, |
57 | MFPR_PULL_LOW, | 57 | MFPR_PULL_LOW, |
58 | MFPR_PULL_HIGH, | 58 | MFPR_PULL_HIGH, |
@@ -60,7 +60,7 @@ const static unsigned long mfpr_pull[] = { | |||
60 | }; | 60 | }; |
61 | 61 | ||
62 | /* mapping of MFP_LPM_EDGE_* definitions to MFPR_EDGE_* register bits */ | 62 | /* mapping of MFP_LPM_EDGE_* definitions to MFPR_EDGE_* register bits */ |
63 | const static unsigned long mfpr_edge[] = { | 63 | static const unsigned long mfpr_edge[] = { |
64 | MFPR_EDGE_NONE, | 64 | MFPR_EDGE_NONE, |
65 | MFPR_EDGE_RISE, | 65 | MFPR_EDGE_RISE, |
66 | MFPR_EDGE_FALL, | 66 | MFPR_EDGE_FALL, |
diff --git a/include/asm-arm/hardware/iop3xx-adma.h b/include/asm-arm/hardware/iop3xx-adma.h index 84d635b0a71a..a32b86ac62aa 100644 --- a/include/asm-arm/hardware/iop3xx-adma.h +++ b/include/asm-arm/hardware/iop3xx-adma.h | |||
@@ -260,7 +260,7 @@ static inline int iop_chan_memset_slot_count(size_t len, int *slots_per_op) | |||
260 | static inline int iop3xx_aau_xor_slot_count(size_t len, int src_cnt, | 260 | static inline int iop3xx_aau_xor_slot_count(size_t len, int src_cnt, |
261 | int *slots_per_op) | 261 | int *slots_per_op) |
262 | { | 262 | { |
263 | const static int slot_count_table[] = { 0, | 263 | static const int slot_count_table[] = { 0, |
264 | 1, 1, 1, 1, /* 01 - 04 */ | 264 | 1, 1, 1, 1, /* 01 - 04 */ |
265 | 2, 2, 2, 2, /* 05 - 08 */ | 265 | 2, 2, 2, 2, /* 05 - 08 */ |
266 | 4, 4, 4, 4, /* 09 - 12 */ | 266 | 4, 4, 4, 4, /* 09 - 12 */ |
@@ -369,7 +369,7 @@ static inline u32 iop_desc_get_byte_count(struct iop_adma_desc_slot *desc, | |||
369 | /* translate the src_idx to a descriptor word index */ | 369 | /* translate the src_idx to a descriptor word index */ |
370 | static inline int __desc_idx(int src_idx) | 370 | static inline int __desc_idx(int src_idx) |
371 | { | 371 | { |
372 | const static int desc_idx_table[] = { 0, 0, 0, 0, | 372 | static const int desc_idx_table[] = { 0, 0, 0, 0, |
373 | 0, 1, 2, 3, | 373 | 0, 1, 2, 3, |
374 | 5, 6, 7, 8, | 374 | 5, 6, 7, 8, |
375 | 9, 10, 11, 12, | 375 | 9, 10, 11, 12, |