diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-07-08 11:46:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-11 15:02:05 -0400 |
commit | 909fc3cba374560ada33a7dc3ab242d0f1d2a135 (patch) | |
tree | cd30b26dd463c0c6df2c8180399ad6ff5e5ff33c /drivers | |
parent | 70e3e8a6e831bf58a7eb98187c186221f01d5b64 (diff) |
iwlagn: remove double level temperature indirect call
No need to do double level indirect call after driver split
no functional changes
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 4 |
6 files changed, 9 insertions, 25 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index a558df953dfd..7795855ff8fe 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -183,9 +183,7 @@ static struct iwl_lib_ops iwl1000_lib = { | |||
183 | EEPROM_REGULATORY_BAND_NO_HT40, | 183 | EEPROM_REGULATORY_BAND_NO_HT40, |
184 | }, | 184 | }, |
185 | }, | 185 | }, |
186 | .temp_ops = { | 186 | .temperature = iwlagn_temperature, |
187 | .temperature = iwlagn_temperature, | ||
188 | }, | ||
189 | }; | 187 | }; |
190 | 188 | ||
191 | static const struct iwl_ops iwl1000_ops = { | 189 | static const struct iwl_ops iwl1000_ops = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 28559941d26e..b2b054f6cd69 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -184,9 +184,7 @@ static struct iwl_lib_ops iwl2000_lib = { | |||
184 | }, | 184 | }, |
185 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, | 185 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
186 | }, | 186 | }, |
187 | .temp_ops = { | 187 | .temperature = iwlagn_temperature, |
188 | .temperature = iwlagn_temperature, | ||
189 | }, | ||
190 | }; | 188 | }; |
191 | 189 | ||
192 | static const struct iwl_ops iwl2000_ops = { | 190 | static const struct iwl_ops iwl2000_ops = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 55972cfc47ab..30c2df6ec83a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -336,9 +336,7 @@ static struct iwl_lib_ops iwl5000_lib = { | |||
336 | EEPROM_REG_BAND_52_HT40_CHANNELS | 336 | EEPROM_REG_BAND_52_HT40_CHANNELS |
337 | }, | 337 | }, |
338 | }, | 338 | }, |
339 | .temp_ops = { | 339 | .temperature = iwlagn_temperature, |
340 | .temperature = iwlagn_temperature, | ||
341 | }, | ||
342 | }; | 340 | }; |
343 | 341 | ||
344 | static struct iwl_lib_ops iwl5150_lib = { | 342 | static struct iwl_lib_ops iwl5150_lib = { |
@@ -359,9 +357,7 @@ static struct iwl_lib_ops iwl5150_lib = { | |||
359 | EEPROM_REG_BAND_52_HT40_CHANNELS | 357 | EEPROM_REG_BAND_52_HT40_CHANNELS |
360 | }, | 358 | }, |
361 | }, | 359 | }, |
362 | .temp_ops = { | 360 | .temperature = iwl5150_temperature, |
363 | .temperature = iwl5150_temperature, | ||
364 | }, | ||
365 | }; | 361 | }; |
366 | 362 | ||
367 | static const struct iwl_ops iwl5000_ops = { | 363 | static const struct iwl_ops iwl5000_ops = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 17dc33775186..57f31692894f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -277,9 +277,7 @@ static struct iwl_lib_ops iwl6000_lib = { | |||
277 | }, | 277 | }, |
278 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, | 278 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
279 | }, | 279 | }, |
280 | .temp_ops = { | 280 | .temperature = iwlagn_temperature, |
281 | .temperature = iwlagn_temperature, | ||
282 | }, | ||
283 | }; | 281 | }; |
284 | 282 | ||
285 | static struct iwl_lib_ops iwl6030_lib = { | 283 | static struct iwl_lib_ops iwl6030_lib = { |
@@ -302,9 +300,7 @@ static struct iwl_lib_ops iwl6030_lib = { | |||
302 | }, | 300 | }, |
303 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, | 301 | .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower, |
304 | }, | 302 | }, |
305 | .temp_ops = { | 303 | .temperature = iwlagn_temperature, |
306 | .temperature = iwlagn_temperature, | ||
307 | }, | ||
308 | }; | 304 | }; |
309 | 305 | ||
310 | static struct iwl_nic_ops iwl6050_nic_ops = { | 306 | static struct iwl_nic_ops iwl6050_nic_ops = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 47cfbb9ddaf7..2e3ea55cea77 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -96,10 +96,6 @@ struct iwl_hcmd_utils_ops { | |||
96 | int (*request_scan)(struct iwl_priv *priv, struct ieee80211_vif *vif); | 96 | int (*request_scan)(struct iwl_priv *priv, struct ieee80211_vif *vif); |
97 | }; | 97 | }; |
98 | 98 | ||
99 | struct iwl_temp_ops { | ||
100 | void (*temperature)(struct iwl_priv *priv); | ||
101 | }; | ||
102 | |||
103 | struct iwl_lib_ops { | 99 | struct iwl_lib_ops { |
104 | /* set hw dependent parameters */ | 100 | /* set hw dependent parameters */ |
105 | int (*set_hw_params)(struct iwl_priv *priv); | 101 | int (*set_hw_params)(struct iwl_priv *priv); |
@@ -120,7 +116,7 @@ struct iwl_lib_ops { | |||
120 | struct iwl_eeprom_ops eeprom_ops; | 116 | struct iwl_eeprom_ops eeprom_ops; |
121 | 117 | ||
122 | /* temperature */ | 118 | /* temperature */ |
123 | struct iwl_temp_ops temp_ops; | 119 | void (*temperature)(struct iwl_priv *priv); |
124 | }; | 120 | }; |
125 | 121 | ||
126 | /* NIC specific ops */ | 122 | /* NIC specific ops */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 87148bb3f628..1690b49bb136 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -624,8 +624,8 @@ static void iwl_rx_statistics(struct iwl_priv *priv, | |||
624 | iwl_rx_calc_noise(priv); | 624 | iwl_rx_calc_noise(priv); |
625 | queue_work(priv->workqueue, &priv->run_time_calib_work); | 625 | queue_work(priv->workqueue, &priv->run_time_calib_work); |
626 | } | 626 | } |
627 | if (priv->cfg->ops->lib->temp_ops.temperature && change) | 627 | if (priv->cfg->ops->lib->temperature && change) |
628 | priv->cfg->ops->lib->temp_ops.temperature(priv); | 628 | priv->cfg->ops->lib->temperature(priv); |
629 | } | 629 | } |
630 | 630 | ||
631 | static void iwl_rx_reply_statistics(struct iwl_priv *priv, | 631 | static void iwl_rx_reply_statistics(struct iwl_priv *priv, |