diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-05 20:24:33 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 21:16:11 +0100 |
commit | 706c4ff67cb86134a3a93413a595a7c5559b7cc2 (patch) | |
tree | 5067706aa3826015a8be7e2137ffd8f9f9c290ab /drivers/net/wireless/iwlwifi/iwl-pci.c | |
parent | iwlwifi: use valid TX/RX antenna from hw_params (diff) | |
download | linux-706c4ff67cb86134a3a93413a595a7c5559b7cc2.tar.xz linux-706c4ff67cb86134a3a93413a595a7c5559b7cc2.zip |
iwlwifi: make config const
Writing to the global config structures
is always wrong. To protect against such
mistakes in the future, mark them const.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-pci.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-pci.c b/drivers/net/wireless/iwlwifi/iwl-pci.c index 06e004157dcc..d109b0f32e33 100644 --- a/drivers/net/wireless/iwlwifi/iwl-pci.c +++ b/drivers/net/wireless/iwlwifi/iwl-pci.c @@ -263,7 +263,7 @@ MODULE_DEVICE_TABLE(pci, iwl_hw_card_ids); static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { - struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data); + const struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data); struct iwl_shared *shrd; struct iwl_trans *iwl_trans; int err; |