diff options
author | Alexander Bondar <alexander.bondar@intel.com> | 2013-03-06 09:28:43 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-03 16:49:49 -0400 |
commit | 4d1c4b1a635afa1a67d17efe11600c38fb2806e7 (patch) | |
tree | 8ee2f9ab3b9b45ac3d0b0cf5e79def48d91eb562 /drivers/net/wireless/iwlwifi/mvm/power.c | |
parent | 614ee33632d6def4cbe6aeca5308bae0545778cd (diff) |
iwlwifi: mvm: remove redundant iwl_power_get_params()
The function just wraps an existing one, remove it.
Signed-off-by: Alexander Bondar <alexander.bondar@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/power.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/power.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/power.c b/drivers/net/wireless/iwlwifi/mvm/power.c index 130516ec3ce3..9395ab2a1af2 100644 --- a/drivers/net/wireless/iwlwifi/mvm/power.c +++ b/drivers/net/wireless/iwlwifi/mvm/power.c | |||
@@ -94,9 +94,8 @@ static void iwl_mvm_power_log(struct iwl_mvm *mvm, | |||
94 | } | 94 | } |
95 | } | 95 | } |
96 | 96 | ||
97 | static void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm, | 97 | void iwl_mvm_power_build_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif, |
98 | struct ieee80211_vif *vif, | 98 | struct iwl_powertable_cmd *cmd) |
99 | struct iwl_powertable_cmd *cmd) | ||
100 | { | 99 | { |
101 | struct ieee80211_hw *hw = mvm->hw; | 100 | struct ieee80211_hw *hw = mvm->hw; |
102 | struct ieee80211_chanctx_conf *chanctx_conf; | 101 | struct ieee80211_chanctx_conf *chanctx_conf; |
@@ -187,11 +186,3 @@ int iwl_mvm_power_disable(struct iwl_mvm *mvm, struct ieee80211_vif *vif) | |||
187 | return iwl_mvm_send_cmd_pdu(mvm, POWER_TABLE_CMD, CMD_ASYNC, | 186 | return iwl_mvm_send_cmd_pdu(mvm, POWER_TABLE_CMD, CMD_ASYNC, |
188 | sizeof(cmd), &cmd); | 187 | sizeof(cmd), &cmd); |
189 | } | 188 | } |
190 | |||
191 | #ifdef CONFIG_IWLWIFI_DEBUGFS | ||
192 | void iwl_power_get_params(struct iwl_mvm *mvm, struct ieee80211_vif *vif, | ||
193 | struct iwl_powertable_cmd *cmd) | ||
194 | { | ||
195 | iwl_mvm_power_build_cmd(mvm, vif, cmd); | ||
196 | } | ||
197 | #endif /* CONFIG_IWLWIFI_DEBUGFS */ | ||