Commit a0ea9493 authored by Tobias Klauser's avatar Tobias Klauser Committed by John W. Linville

drivers/net/wireless: 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: default avatarTobias Klauser <tklauser@distanz.ch>
Acked-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Acked-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c5395b67
...@@ -2417,7 +2417,7 @@ void iwl_update_stats(struct iwl_priv *priv, bool is_tx, __le16 fc, u16 len) ...@@ -2417,7 +2417,7 @@ void iwl_update_stats(struct iwl_priv *priv, bool is_tx, __le16 fc, u16 len)
EXPORT_SYMBOL(iwl_update_stats); EXPORT_SYMBOL(iwl_update_stats);
#endif #endif
const static char *get_csr_string(int cmd) static const char *get_csr_string(int cmd)
{ {
switch (cmd) { switch (cmd) {
IWL_CMD(CSR_HW_IF_CONFIG_REG); IWL_CMD(CSR_HW_IF_CONFIG_REG);
...@@ -2488,7 +2488,7 @@ void iwl_dump_csr(struct iwl_priv *priv) ...@@ -2488,7 +2488,7 @@ void iwl_dump_csr(struct iwl_priv *priv)
} }
EXPORT_SYMBOL(iwl_dump_csr); EXPORT_SYMBOL(iwl_dump_csr);
const static char *get_fh_string(int cmd) static const char *get_fh_string(int cmd)
{ {
switch (cmd) { switch (cmd) {
IWL_CMD(FH_RSCSR_CHNL0_STTS_WPTR_REG); IWL_CMD(FH_RSCSR_CHNL0_STTS_WPTR_REG);
......
...@@ -1998,7 +1998,7 @@ static struct ieee80211_channel wl1271_channels[] = { ...@@ -1998,7 +1998,7 @@ static struct ieee80211_channel wl1271_channels[] = {
}; };
/* mapping to indexes for wl1271_rates */ /* mapping to indexes for wl1271_rates */
const static u8 wl1271_rate_to_idx_2ghz[] = { static const u8 wl1271_rate_to_idx_2ghz[] = {
/* MCS rates are used only with 11n */ /* MCS rates are used only with 11n */
CONF_HW_RXTX_RATE_UNSUPPORTED, /* CONF_HW_RXTX_RATE_MCS7 */ CONF_HW_RXTX_RATE_UNSUPPORTED, /* CONF_HW_RXTX_RATE_MCS7 */
CONF_HW_RXTX_RATE_UNSUPPORTED, /* CONF_HW_RXTX_RATE_MCS6 */ CONF_HW_RXTX_RATE_UNSUPPORTED, /* CONF_HW_RXTX_RATE_MCS6 */
...@@ -2110,7 +2110,7 @@ static struct ieee80211_channel wl1271_channels_5ghz[] = { ...@@ -2110,7 +2110,7 @@ static struct ieee80211_channel wl1271_channels_5ghz[] = {
}; };
/* mapping to indexes for wl1271_rates_5ghz */ /* mapping to indexes for wl1271_rates_5ghz */
const static u8 wl1271_rate_to_idx_5ghz[] = { static const u8 wl1271_rate_to_idx_5ghz[] = {
/* MCS rates are used only with 11n */ /* MCS rates are used only with 11n */
CONF_HW_RXTX_RATE_UNSUPPORTED, /* CONF_HW_RXTX_RATE_MCS7 */ CONF_HW_RXTX_RATE_UNSUPPORTED, /* CONF_HW_RXTX_RATE_MCS7 */
CONF_HW_RXTX_RATE_UNSUPPORTED, /* CONF_HW_RXTX_RATE_MCS6 */ CONF_HW_RXTX_RATE_UNSUPPORTED, /* CONF_HW_RXTX_RATE_MCS6 */
...@@ -2146,7 +2146,7 @@ static struct ieee80211_supported_band wl1271_band_5ghz = { ...@@ -2146,7 +2146,7 @@ static struct ieee80211_supported_band wl1271_band_5ghz = {
.n_bitrates = ARRAY_SIZE(wl1271_rates_5ghz), .n_bitrates = ARRAY_SIZE(wl1271_rates_5ghz),
}; };
const static u8 *wl1271_band_rate_to_idx[] = { static const u8 *wl1271_band_rate_to_idx[] = {
[IEEE80211_BAND_2GHZ] = wl1271_rate_to_idx_2ghz, [IEEE80211_BAND_2GHZ] = wl1271_rate_to_idx_2ghz,
[IEEE80211_BAND_5GHZ] = wl1271_rate_to_idx_5ghz [IEEE80211_BAND_5GHZ] = wl1271_rate_to_idx_5ghz
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment