diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-03-07 04:26:41 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-16 18:09:36 -0400 |
commit | 2c91108c55477334f6854a587ec6e9111d8f1407 (patch) | |
tree | cea98b7ea31c0e37508fec8513b4a299409fa556 /drivers/net/wireless/ath5k/base.c | |
parent | 77dcb6a9526b1e0d159a9300e512c7271bff3163 (diff) |
ath5k: constify stuff
Make some structures const to place them in .rodata, since we won't
change them.
Most important parts of objdump -h:
- 0 .text 00011170
+ 0 .text 00011140
- 5 .rodata 0000828e
+ 5 .rodata 0000895e
- 13 .data 00000560
+ 13 .data 00000110
- 14 .devinit.data 00000260
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Cc: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index f7c424dcac66..f2e5c3936f06 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -79,7 +79,7 @@ MODULE_VERSION("0.6.0 (EXPERIMENTAL)"); | |||
79 | 79 | ||
80 | 80 | ||
81 | /* Known PCI ids */ | 81 | /* Known PCI ids */ |
82 | static struct pci_device_id ath5k_pci_id_table[] __devinitdata = { | 82 | static const struct pci_device_id ath5k_pci_id_table[] = { |
83 | { PCI_VDEVICE(ATHEROS, 0x0207), .driver_data = AR5K_AR5210 }, /* 5210 early */ | 83 | { PCI_VDEVICE(ATHEROS, 0x0207), .driver_data = AR5K_AR5210 }, /* 5210 early */ |
84 | { PCI_VDEVICE(ATHEROS, 0x0007), .driver_data = AR5K_AR5210 }, /* 5210 */ | 84 | { PCI_VDEVICE(ATHEROS, 0x0007), .driver_data = AR5K_AR5210 }, /* 5210 */ |
85 | { PCI_VDEVICE(ATHEROS, 0x0011), .driver_data = AR5K_AR5211 }, /* 5311 - this is on AHB bus !*/ | 85 | { PCI_VDEVICE(ATHEROS, 0x0011), .driver_data = AR5K_AR5211 }, /* 5311 - this is on AHB bus !*/ |
@@ -103,7 +103,7 @@ static struct pci_device_id ath5k_pci_id_table[] __devinitdata = { | |||
103 | MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table); | 103 | MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table); |
104 | 104 | ||
105 | /* Known SREVs */ | 105 | /* Known SREVs */ |
106 | static struct ath5k_srev_name srev_names[] = { | 106 | static const struct ath5k_srev_name srev_names[] = { |
107 | { "5210", AR5K_VERSION_MAC, AR5K_SREV_AR5210 }, | 107 | { "5210", AR5K_VERSION_MAC, AR5K_SREV_AR5210 }, |
108 | { "5311", AR5K_VERSION_MAC, AR5K_SREV_AR5311 }, | 108 | { "5311", AR5K_VERSION_MAC, AR5K_SREV_AR5311 }, |
109 | { "5311A", AR5K_VERSION_MAC, AR5K_SREV_AR5311A }, | 109 | { "5311A", AR5K_VERSION_MAC, AR5K_SREV_AR5311A }, |
@@ -142,7 +142,7 @@ static struct ath5k_srev_name srev_names[] = { | |||
142 | { "xxxxx", AR5K_VERSION_RAD, AR5K_SREV_UNKNOWN }, | 142 | { "xxxxx", AR5K_VERSION_RAD, AR5K_SREV_UNKNOWN }, |
143 | }; | 143 | }; |
144 | 144 | ||
145 | static struct ieee80211_rate ath5k_rates[] = { | 145 | static const struct ieee80211_rate ath5k_rates[] = { |
146 | { .bitrate = 10, | 146 | { .bitrate = 10, |
147 | .hw_value = ATH5K_RATE_CODE_1M, }, | 147 | .hw_value = ATH5K_RATE_CODE_1M, }, |
148 | { .bitrate = 20, | 148 | { .bitrate = 20, |
@@ -248,7 +248,7 @@ static void ath5k_bss_info_changed(struct ieee80211_hw *hw, | |||
248 | struct ieee80211_bss_conf *bss_conf, | 248 | struct ieee80211_bss_conf *bss_conf, |
249 | u32 changes); | 249 | u32 changes); |
250 | 250 | ||
251 | static struct ieee80211_ops ath5k_hw_ops = { | 251 | static const struct ieee80211_ops ath5k_hw_ops = { |
252 | .tx = ath5k_tx, | 252 | .tx = ath5k_tx, |
253 | .start = ath5k_start, | 253 | .start = ath5k_start, |
254 | .stop = ath5k_stop, | 254 | .stop = ath5k_stop, |