diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-04-17 10:36:30 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-04-23 17:30:51 -0400 |
commit | 65de7e84fdc71a409f1d97aba8e44ece26628f51 (patch) | |
tree | c2db81db4b0660fd8c3d615b56e502921224f1c1 /drivers/net/wireless/iwlwifi/iwl-power.c | |
parent | eb4887b6c6ddfe401b2668da9c1bf5f154522ace (diff) |
iwlwifi: clean up module parameters
For now at least, all module parameters should be
with the core functionality, so move them there,
while at it rename to iwlwifi_mod_params. Also
rename iwl-shared.h to iwl-modparams.h to reflect
the real contents.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-power.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-power.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c index 5fba34bf8bca..8352265dbc4b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.c +++ b/drivers/net/wireless/iwlwifi/iwl-power.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include "iwl-debug.h" | 42 | #include "iwl-debug.h" |
43 | #include "iwl-power.h" | 43 | #include "iwl-power.h" |
44 | #include "iwl-trans.h" | 44 | #include "iwl-trans.h" |
45 | #include "iwl-modparams.h" | ||
45 | 46 | ||
46 | /* | 47 | /* |
47 | * Setting power level allows the card to go to sleep when not busy. | 48 | * Setting power level allows the card to go to sleep when not busy. |
@@ -307,10 +308,10 @@ static void iwl_power_build_cmd(struct iwl_priv *priv, | |||
307 | priv->power_data.debug_sleep_level_override, | 308 | priv->power_data.debug_sleep_level_override, |
308 | dtimper); | 309 | dtimper); |
309 | else { | 310 | else { |
310 | if (iwlagn_mod_params.power_level > IWL_POWER_INDEX_1 && | 311 | if (iwlwifi_mod_params.power_level > IWL_POWER_INDEX_1 && |
311 | iwlagn_mod_params.power_level <= IWL_POWER_INDEX_5) | 312 | iwlwifi_mod_params.power_level <= IWL_POWER_INDEX_5) |
312 | iwl_static_sleep_cmd(priv, cmd, | 313 | iwl_static_sleep_cmd(priv, cmd, |
313 | iwlagn_mod_params.power_level, dtimper); | 314 | iwlwifi_mod_params.power_level, dtimper); |
314 | else | 315 | else |
315 | iwl_static_sleep_cmd(priv, cmd, | 316 | iwl_static_sleep_cmd(priv, cmd, |
316 | IWL_POWER_INDEX_1, dtimper); | 317 | IWL_POWER_INDEX_1, dtimper); |