* [PATCH] ath5k: Storage class should be before const qualifier
@ 2009-02-09 22:05 Tobias Klauser
2009-02-09 22:09 ` Jiri Slaby
0 siblings, 1 reply; 4+ messages in thread
From: Tobias Klauser @ 2009-02-09 22:05 UTC (permalink / raw)
To: jirislaby, ath5k-devel, linux-wireless, kernel-janitors, trivial
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>
---
drivers/net/wireless/ath5k/eeprom.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath5k/eeprom.c b/drivers/net/wireless/ath5k/eeprom.c
index 1cb7edf..c5e03a6 100644
--- a/drivers/net/wireless/ath5k/eeprom.c
+++ b/drivers/net/wireless/ath5k/eeprom.c
@@ -491,9 +491,9 @@ ath5k_eeprom_init_modes(struct ath5k_hw *ah)
static inline void
ath5k_get_pcdac_intercepts(struct ath5k_hw *ah, u8 min, u8 max, u8 *vp)
{
- const static u16 intercepts3[] =
+ static const u16 intercepts3[] =
{ 0, 5, 10, 20, 30, 50, 70, 85, 90, 95, 100 };
- const static u16 intercepts3_2[] =
+ static const u16 intercepts3_2[] =
{ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
const u16 *ip;
int i;
--
1.5.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] ath5k: Storage class should be before const qualifier
@ 2009-04-26 12:58 Tobias Klauser
2009-04-26 19:11 ` Jiri Slaby
0 siblings, 1 reply; 4+ messages in thread
From: Tobias Klauser @ 2009-04-26 12:58 UTC (permalink / raw)
To: jirislaby, mickflemm, lrodriguez, me
Cc: linux-wireless, ath5k-devel, Tobias Klauser
commit 8e218fb24faef0bfe95bc91b3c05261e20439527 reverted the previous
patch (commit 925be8a3077351edbf2b59ca689105df214a0792).
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>
---
drivers/net/wireless/ath5k/eeprom.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath5k/eeprom.c b/drivers/net/wireless/ath5k/eeprom.c
index c0fb3b0..c85429d 100644
--- a/drivers/net/wireless/ath5k/eeprom.c
+++ b/drivers/net/wireless/ath5k/eeprom.c
@@ -640,9 +640,9 @@ ath5k_eeprom_init_11bg_2413(struct ath5k_hw *ah, unsigned int mode, int offset)
static inline void
ath5k_get_pcdac_intercepts(struct ath5k_hw *ah, u8 min, u8 max, u8 *vp)
{
- const static u16 intercepts3[] =
+ static const u16 intercepts3[] =
{ 0, 5, 10, 20, 30, 50, 70, 85, 90, 95, 100 };
- const static u16 intercepts3_2[] =
+ static const u16 intercepts3_2[] =
{ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
const u16 *ip;
int i;
--
1.6.2.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-26 19:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-09 22:05 [PATCH] ath5k: Storage class should be before const qualifier Tobias Klauser
2009-02-09 22:09 ` Jiri Slaby
-- strict thread matches above, loose matches on Subject: below --
2009-04-26 12:58 Tobias Klauser
2009-04-26 19:11 ` Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).