Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256431
b: refs/heads/master
c: 909fc3c
h: refs/heads/master
i:
  256429: d55334c
  256427: 44e63a9
  256423: 325afb5
  256415: 6ed3509
v: v3
  • Loading branch information
Wey-Yi Guy authored and John W. Linville committed Jul 11, 2011
1 parent b46fcae commit 933cff0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70e3e8a6e831bf58a7eb98187c186221f01d5b64
refs/heads/master: 909fc3cba374560ada33a7dc3ab242d0f1d2a135
4 changes: 1 addition & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
8 changes: 2 additions & 6 deletions trunk/drivers/net/wireless/iwlwifi/iwl-5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand Down
8 changes: 2 additions & 6 deletions trunk/drivers/net/wireless/iwlwifi/iwl-6000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/net/wireless/iwlwifi/iwl-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/iwl-rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 933cff0

Please sign in to comment.