iwlagn: remove double level temperature indirect call
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 8 Jul 2011 15:46:20 +0000 (08:46 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jul 2011 19:02:05 +0000 (15:02 -0400)
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>
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-core.h
drivers/net/wireless/iwlwifi/iwl-rx.c

index a558df953dfd4f81c855b6b397c6d39dfd327d5d..7795855ff8fed71f08b715988ddc1ea0e210f730 100644 (file)
@@ -183,9 +183,7 @@ static struct iwl_lib_ops iwl1000_lib = {
                        EEPROM_REGULATORY_BAND_NO_HT40,
                },
        },
-       .temp_ops = {
-               .temperature = iwlagn_temperature,
-        },
+       .temperature = iwlagn_temperature,
 };
 
 static const struct iwl_ops iwl1000_ops = {
index 28559941d26e5a3f75be354cf0e8c62c01dc17ac..b2b054f6cd69d5c2a214339757e6e6354c4eba6e 100644 (file)
@@ -184,9 +184,7 @@ static struct iwl_lib_ops iwl2000_lib = {
                },
                .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
        },
-       .temp_ops = {
-               .temperature = iwlagn_temperature,
-       },
+       .temperature = iwlagn_temperature,
 };
 
 static const struct iwl_ops iwl2000_ops = {
index 55972cfc47abac56c6dbc1153121c0128aa61210..30c2df6ec83a6156d6d630030ec69788c68e1cad 100644 (file)
@@ -336,9 +336,7 @@ static struct iwl_lib_ops iwl5000_lib = {
                        EEPROM_REG_BAND_52_HT40_CHANNELS
                },
        },
-       .temp_ops = {
-               .temperature = iwlagn_temperature,
-        },
+       .temperature = iwlagn_temperature,
 };
 
 static struct iwl_lib_ops iwl5150_lib = {
@@ -359,9 +357,7 @@ static struct iwl_lib_ops iwl5150_lib = {
                        EEPROM_REG_BAND_52_HT40_CHANNELS
                },
        },
-       .temp_ops = {
-               .temperature = iwl5150_temperature,
-        },
+       .temperature = iwl5150_temperature,
 };
 
 static const struct iwl_ops iwl5000_ops = {
index 17dc33775186c2eb7586d208306bb5d4c483c16c..57f31692894f6b824ba4992c5d4af4e58a2c65f1 100644 (file)
@@ -277,9 +277,7 @@ static struct iwl_lib_ops iwl6000_lib = {
                },
                .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
        },
-       .temp_ops = {
-               .temperature = iwlagn_temperature,
-        },
+       .temperature = iwlagn_temperature,
 };
 
 static struct iwl_lib_ops iwl6030_lib = {
@@ -302,9 +300,7 @@ static struct iwl_lib_ops iwl6030_lib = {
                },
                .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
        },
-       .temp_ops = {
-               .temperature = iwlagn_temperature,
-        },
+       .temperature = iwlagn_temperature,
 };
 
 static struct iwl_nic_ops iwl6050_nic_ops = {
index 47cfbb9ddaf78cff45c74ea767a65eea778f8e7f..2e3ea55cea776ce239ab10df2fef3f11e224e172 100644 (file)
@@ -96,10 +96,6 @@ struct iwl_hcmd_utils_ops {
        int (*request_scan)(struct iwl_priv *priv, struct ieee80211_vif *vif);
 };
 
-struct iwl_temp_ops {
-       void (*temperature)(struct iwl_priv *priv);
-};
-
 struct iwl_lib_ops {
        /* set hw dependent parameters */
        int (*set_hw_params)(struct iwl_priv *priv);
@@ -120,7 +116,7 @@ struct iwl_lib_ops {
        struct iwl_eeprom_ops eeprom_ops;
 
        /* temperature */
-       struct iwl_temp_ops temp_ops;
+       void (*temperature)(struct iwl_priv *priv);
 };
 
 /* NIC specific ops */
index 87148bb3f62817d653a278a9efef8cc3f21a04eb..1690b49bb136f66c7d04d7f8fa3d773b8020f90d 100644 (file)
@@ -624,8 +624,8 @@ static void iwl_rx_statistics(struct iwl_priv *priv,
                iwl_rx_calc_noise(priv);
                queue_work(priv->workqueue, &priv->run_time_calib_work);
        }
-       if (priv->cfg->ops->lib->temp_ops.temperature && change)
-               priv->cfg->ops->lib->temp_ops.temperature(priv);
+       if (priv->cfg->ops->lib->temperature && change)
+               priv->cfg->ops->lib->temperature(priv);
 }
 
 static void iwl_rx_reply_statistics(struct iwl_priv *priv,