iwlwifi: remove unused max_nrg_cck from sensitivity and constify
authorJohannes Berg <johannes.berg@intel.com>
Wed, 7 Mar 2012 17:52:21 +0000 (09:52 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 8 Mar 2012 18:59:49 +0000 (13:59 -0500)
The sensitivity parameters are never modified, so they
should be const. Also remove the unused max_nrg_cck
value to save some space.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-1000.c
drivers/net/wireless/iwlwifi/iwl-2000.c
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-dev.h

index f6e6f57aade5d8be879be427a5506230c4ae40b8..450250332e4be7e8631253225e43ddb10943c6a3 100644 (file)
@@ -96,9 +96,8 @@ static void iwl1000_nic_config(struct iwl_priv *priv)
                                ~APMG_SVR_VOLTAGE_CONFIG_BIT_MSK);
 }
 
-static struct iwl_sensitivity_ranges iwl1000_sensitivity = {
+static const struct iwl_sensitivity_ranges iwl1000_sensitivity = {
        .min_nrg_cck = 95,
-       .max_nrg_cck = 0, /* not used, set to 0 */
        .auto_corr_min_ofdm = 90,
        .auto_corr_min_ofdm_mrc = 170,
        .auto_corr_min_ofdm_x1 = 120,
index 14ce83bc71a5491faa14db2764513d11c1cb5447..abfd901e81a210246920bcadf7f41db4cca1765d 100644 (file)
@@ -91,9 +91,8 @@ static void iwl2000_nic_config(struct iwl_priv *priv)
                            CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER);
 }
 
-static struct iwl_sensitivity_ranges iwl2000_sensitivity = {
+static const struct iwl_sensitivity_ranges iwl2000_sensitivity = {
        .min_nrg_cck = 97,
-       .max_nrg_cck = 0, /* not used, set to 0 */
        .auto_corr_min_ofdm = 80,
        .auto_corr_min_ofdm_mrc = 128,
        .auto_corr_min_ofdm_x1 = 105,
index 907a0b22f7b24d5a263d1c090e8becca8791b4c3..9e187f8f5ae411833b444c22562d4312657c0e3c 100644 (file)
@@ -75,9 +75,8 @@ static void iwl5000_nic_config(struct iwl_priv *priv)
                                ~APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS);
 }
 
-static struct iwl_sensitivity_ranges iwl5000_sensitivity = {
+static const struct iwl_sensitivity_ranges iwl5000_sensitivity = {
        .min_nrg_cck = 100,
-       .max_nrg_cck = 0, /* not used, set to 0 */
        .auto_corr_min_ofdm = 90,
        .auto_corr_min_ofdm_mrc = 170,
        .auto_corr_min_ofdm_x1 = 105,
@@ -102,7 +101,6 @@ static struct iwl_sensitivity_ranges iwl5000_sensitivity = {
 
 static struct iwl_sensitivity_ranges iwl5150_sensitivity = {
        .min_nrg_cck = 95,
-       .max_nrg_cck = 0, /* not used, set to 0 */
        .auto_corr_min_ofdm = 90,
        .auto_corr_min_ofdm_mrc = 170,
        .auto_corr_min_ofdm_x1 = 105,
index 0f89e45da1a2cdcbbb419058b88811af7cb304bc..e64bc6b7bcbf7c073d0c1a938c0e618b45a88c01 100644 (file)
@@ -113,9 +113,8 @@ static void iwl6000_nic_config(struct iwl_priv *priv)
                cfg(priv)->additional_nic_config(priv);
 }
 
-static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
+static const struct iwl_sensitivity_ranges iwl6000_sensitivity = {
        .min_nrg_cck = 110,
-       .max_nrg_cck = 0, /* not used, set to 0 */
        .auto_corr_min_ofdm = 80,
        .auto_corr_min_ofdm_mrc = 128,
        .auto_corr_min_ofdm_x1 = 105,
index 74429702b13081316a0fc362957aa3eea2959792..c3f372e2c142b8fca29c0057c8cfdd19620be467 100644 (file)
@@ -294,7 +294,6 @@ struct iwl_vif_priv {
 
 struct iwl_sensitivity_ranges {
        u16 min_nrg_cck;
-       u16 max_nrg_cck;
 
        u16 nrg_th_cck;
        u16 nrg_th_ofdm;