diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-05-17 03:58:27 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-05-27 06:59:42 -0400 |
commit | ee4d5471333c323693f79cdb7b145b40e12baa77 (patch) | |
tree | 9b66d8b6bb16d947c153750620286827cf7eb481 | |
parent | 8ade62857ef77bdf639185410fbcd811aa700cb2 (diff) |
iwlwifi: dvm: rename iwl_lib_ops to iwl_dvm_cfg
The next patches will move some more configuration
data that isn't needed by mvm into this struct, so
rename it now since it won't just be ops.
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/agn.h | 14 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/dev.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/devices.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/main.c | 14 |
4 files changed, 23 insertions, 23 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/agn.h b/drivers/net/wireless/iwlwifi/dvm/agn.h index 48545ab00311..ff47fce6c58e 100644 --- a/drivers/net/wireless/iwlwifi/dvm/agn.h +++ b/drivers/net/wireless/iwlwifi/dvm/agn.h | |||
@@ -76,13 +76,13 @@ | |||
76 | #define IWL_INVALID_STATION 255 | 76 | #define IWL_INVALID_STATION 255 |
77 | 77 | ||
78 | /* device operations */ | 78 | /* device operations */ |
79 | extern struct iwl_lib_ops iwl1000_lib; | 79 | extern struct iwl_dvm_cfg iwl_dvm_1000_cfg; |
80 | extern struct iwl_lib_ops iwl2000_lib; | 80 | extern struct iwl_dvm_cfg iwl_dvm_2000_cfg; |
81 | extern struct iwl_lib_ops iwl2030_lib; | 81 | extern struct iwl_dvm_cfg iwl_dvm_2030_cfg; |
82 | extern struct iwl_lib_ops iwl5000_lib; | 82 | extern struct iwl_dvm_cfg iwl_dvm_5000_cfg; |
83 | extern struct iwl_lib_ops iwl5150_lib; | 83 | extern struct iwl_dvm_cfg iwl_dvm_5150_cfg; |
84 | extern struct iwl_lib_ops iwl6000_lib; | 84 | extern struct iwl_dvm_cfg iwl_dvm_6000_cfg; |
85 | extern struct iwl_lib_ops iwl6030_lib; | 85 | extern struct iwl_dvm_cfg iwl_dvm_6030_cfg; |
86 | 86 | ||
87 | 87 | ||
88 | #define TIME_UNIT 1024 | 88 | #define TIME_UNIT 1024 |
diff --git a/drivers/net/wireless/iwlwifi/dvm/dev.h b/drivers/net/wireless/iwlwifi/dvm/dev.h index 71ea77576d22..beb525cb907a 100644 --- a/drivers/net/wireless/iwlwifi/dvm/dev.h +++ b/drivers/net/wireless/iwlwifi/dvm/dev.h | |||
@@ -568,7 +568,7 @@ struct iwl_hw_params { | |||
568 | const struct iwl_sensitivity_ranges *sens; | 568 | const struct iwl_sensitivity_ranges *sens; |
569 | }; | 569 | }; |
570 | 570 | ||
571 | struct iwl_lib_ops { | 571 | struct iwl_dvm_cfg { |
572 | /* set hw dependent parameters */ | 572 | /* set hw dependent parameters */ |
573 | void (*set_hw_params)(struct iwl_priv *priv); | 573 | void (*set_hw_params)(struct iwl_priv *priv); |
574 | int (*set_channel_switch)(struct iwl_priv *priv, | 574 | int (*set_channel_switch)(struct iwl_priv *priv, |
@@ -610,7 +610,7 @@ struct iwl_priv { | |||
610 | struct device *dev; /* for debug prints only */ | 610 | struct device *dev; /* for debug prints only */ |
611 | const struct iwl_cfg *cfg; | 611 | const struct iwl_cfg *cfg; |
612 | const struct iwl_fw *fw; | 612 | const struct iwl_fw *fw; |
613 | const struct iwl_lib_ops *lib; | 613 | const struct iwl_dvm_cfg *lib; |
614 | unsigned long status; | 614 | unsigned long status; |
615 | 615 | ||
616 | spinlock_t sta_lock; | 616 | spinlock_t sta_lock; |
diff --git a/drivers/net/wireless/iwlwifi/dvm/devices.c b/drivers/net/wireless/iwlwifi/dvm/devices.c index c48907c8ab43..5878bbbfc3dd 100644 --- a/drivers/net/wireless/iwlwifi/dvm/devices.c +++ b/drivers/net/wireless/iwlwifi/dvm/devices.c | |||
@@ -174,7 +174,7 @@ static void iwl1000_hw_set_hw_params(struct iwl_priv *priv) | |||
174 | priv->hw_params.sens = &iwl1000_sensitivity; | 174 | priv->hw_params.sens = &iwl1000_sensitivity; |
175 | } | 175 | } |
176 | 176 | ||
177 | struct iwl_lib_ops iwl1000_lib = { | 177 | struct iwl_dvm_cfg iwl_dvm_1000_cfg = { |
178 | .set_hw_params = iwl1000_hw_set_hw_params, | 178 | .set_hw_params = iwl1000_hw_set_hw_params, |
179 | .nic_config = iwl1000_nic_config, | 179 | .nic_config = iwl1000_nic_config, |
180 | .temperature = iwlagn_temperature, | 180 | .temperature = iwlagn_temperature, |
@@ -232,13 +232,13 @@ static void iwl2000_hw_set_hw_params(struct iwl_priv *priv) | |||
232 | priv->hw_params.sens = &iwl2000_sensitivity; | 232 | priv->hw_params.sens = &iwl2000_sensitivity; |
233 | } | 233 | } |
234 | 234 | ||
235 | struct iwl_lib_ops iwl2000_lib = { | 235 | struct iwl_dvm_cfg iwl_dvm_2000_cfg = { |
236 | .set_hw_params = iwl2000_hw_set_hw_params, | 236 | .set_hw_params = iwl2000_hw_set_hw_params, |
237 | .nic_config = iwl2000_nic_config, | 237 | .nic_config = iwl2000_nic_config, |
238 | .temperature = iwlagn_temperature, | 238 | .temperature = iwlagn_temperature, |
239 | }; | 239 | }; |
240 | 240 | ||
241 | struct iwl_lib_ops iwl2030_lib = { | 241 | struct iwl_dvm_cfg iwl_dvm_2030_cfg = { |
242 | .set_hw_params = iwl2000_hw_set_hw_params, | 242 | .set_hw_params = iwl2000_hw_set_hw_params, |
243 | .nic_config = iwl2000_nic_config, | 243 | .nic_config = iwl2000_nic_config, |
244 | .temperature = iwlagn_temperature, | 244 | .temperature = iwlagn_temperature, |
@@ -420,13 +420,13 @@ static int iwl5000_hw_channel_switch(struct iwl_priv *priv, | |||
420 | return iwl_dvm_send_cmd(priv, &hcmd); | 420 | return iwl_dvm_send_cmd(priv, &hcmd); |
421 | } | 421 | } |
422 | 422 | ||
423 | struct iwl_lib_ops iwl5000_lib = { | 423 | struct iwl_dvm_cfg iwl_dvm_5000_cfg = { |
424 | .set_hw_params = iwl5000_hw_set_hw_params, | 424 | .set_hw_params = iwl5000_hw_set_hw_params, |
425 | .set_channel_switch = iwl5000_hw_channel_switch, | 425 | .set_channel_switch = iwl5000_hw_channel_switch, |
426 | .temperature = iwlagn_temperature, | 426 | .temperature = iwlagn_temperature, |
427 | }; | 427 | }; |
428 | 428 | ||
429 | struct iwl_lib_ops iwl5150_lib = { | 429 | struct iwl_dvm_cfg iwl_dvm_5150_cfg = { |
430 | .set_hw_params = iwl5150_hw_set_hw_params, | 430 | .set_hw_params = iwl5150_hw_set_hw_params, |
431 | .set_channel_switch = iwl5000_hw_channel_switch, | 431 | .set_channel_switch = iwl5000_hw_channel_switch, |
432 | .temperature = iwl5150_temperature, | 432 | .temperature = iwl5150_temperature, |
@@ -584,14 +584,14 @@ static int iwl6000_hw_channel_switch(struct iwl_priv *priv, | |||
584 | return err; | 584 | return err; |
585 | } | 585 | } |
586 | 586 | ||
587 | struct iwl_lib_ops iwl6000_lib = { | 587 | struct iwl_dvm_cfg iwl_dvm_6000_cfg = { |
588 | .set_hw_params = iwl6000_hw_set_hw_params, | 588 | .set_hw_params = iwl6000_hw_set_hw_params, |
589 | .set_channel_switch = iwl6000_hw_channel_switch, | 589 | .set_channel_switch = iwl6000_hw_channel_switch, |
590 | .nic_config = iwl6000_nic_config, | 590 | .nic_config = iwl6000_nic_config, |
591 | .temperature = iwlagn_temperature, | 591 | .temperature = iwlagn_temperature, |
592 | }; | 592 | }; |
593 | 593 | ||
594 | struct iwl_lib_ops iwl6030_lib = { | 594 | struct iwl_dvm_cfg iwl_dvm_6030_cfg = { |
595 | .set_hw_params = iwl6000_hw_set_hw_params, | 595 | .set_hw_params = iwl6000_hw_set_hw_params, |
596 | .set_channel_switch = iwl6000_hw_channel_switch, | 596 | .set_channel_switch = iwl6000_hw_channel_switch, |
597 | .nic_config = iwl6000_nic_config, | 597 | .nic_config = iwl6000_nic_config, |
diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c index 74d7572e7091..0c77222c2c64 100644 --- a/drivers/net/wireless/iwlwifi/dvm/main.c +++ b/drivers/net/wireless/iwlwifi/dvm/main.c | |||
@@ -1264,31 +1264,31 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, | |||
1264 | switch (priv->cfg->device_family) { | 1264 | switch (priv->cfg->device_family) { |
1265 | case IWL_DEVICE_FAMILY_1000: | 1265 | case IWL_DEVICE_FAMILY_1000: |
1266 | case IWL_DEVICE_FAMILY_100: | 1266 | case IWL_DEVICE_FAMILY_100: |
1267 | priv->lib = &iwl1000_lib; | 1267 | priv->lib = &iwl_dvm_1000_cfg; |
1268 | break; | 1268 | break; |
1269 | case IWL_DEVICE_FAMILY_2000: | 1269 | case IWL_DEVICE_FAMILY_2000: |
1270 | case IWL_DEVICE_FAMILY_105: | 1270 | case IWL_DEVICE_FAMILY_105: |
1271 | priv->lib = &iwl2000_lib; | 1271 | priv->lib = &iwl_dvm_2000_cfg; |
1272 | break; | 1272 | break; |
1273 | case IWL_DEVICE_FAMILY_2030: | 1273 | case IWL_DEVICE_FAMILY_2030: |
1274 | case IWL_DEVICE_FAMILY_135: | 1274 | case IWL_DEVICE_FAMILY_135: |
1275 | priv->lib = &iwl2030_lib; | 1275 | priv->lib = &iwl_dvm_2030_cfg; |
1276 | break; | 1276 | break; |
1277 | case IWL_DEVICE_FAMILY_5000: | 1277 | case IWL_DEVICE_FAMILY_5000: |
1278 | priv->lib = &iwl5000_lib; | 1278 | priv->lib = &iwl_dvm_5000_cfg; |
1279 | break; | 1279 | break; |
1280 | case IWL_DEVICE_FAMILY_5150: | 1280 | case IWL_DEVICE_FAMILY_5150: |
1281 | priv->lib = &iwl5150_lib; | 1281 | priv->lib = &iwl_dvm_5150_cfg; |
1282 | break; | 1282 | break; |
1283 | case IWL_DEVICE_FAMILY_6000: | 1283 | case IWL_DEVICE_FAMILY_6000: |
1284 | case IWL_DEVICE_FAMILY_6005: | 1284 | case IWL_DEVICE_FAMILY_6005: |
1285 | case IWL_DEVICE_FAMILY_6000i: | 1285 | case IWL_DEVICE_FAMILY_6000i: |
1286 | case IWL_DEVICE_FAMILY_6050: | 1286 | case IWL_DEVICE_FAMILY_6050: |
1287 | case IWL_DEVICE_FAMILY_6150: | 1287 | case IWL_DEVICE_FAMILY_6150: |
1288 | priv->lib = &iwl6000_lib; | 1288 | priv->lib = &iwl_dvm_6000_cfg; |
1289 | break; | 1289 | break; |
1290 | case IWL_DEVICE_FAMILY_6030: | 1290 | case IWL_DEVICE_FAMILY_6030: |
1291 | priv->lib = &iwl6030_lib; | 1291 | priv->lib = &iwl_dvm_6030_cfg; |
1292 | break; | 1292 | break; |
1293 | default: | 1293 | default: |
1294 | break; | 1294 | break; |