aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-20 21:38:57 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-11-22 15:58:48 -0500
commit20407ed8a5bb271dd8e8bd4678e1d3dadeb318bd (patch)
treece6bcb885432ed86e6551b6416dd6ea65bf81fee /drivers/net/wireless/iwlwifi/iwl-agn-lib.c
parent5b4bc649e18539a5d5a5482670d77f3f72de0eea (diff)
iwlwifi: Use static const
Using static const generally increases object text and decreases data size. It also generally decreases overall object size. text data bss dec hex filename 48644 57 12120 60821 ed95 drivers/net/wireless/b43/phy_n.o.new 48661 57 12120 60838 eda6 drivers/net/wireless/b43/phy_n.o.old 37906 86 7904 45896 b348 drivers/net/wireless/iwlwifi/iwl-agn-lib.o.new 37937 86 7904 45927 b367 drivers/net/wireless/iwlwifi/iwl-agn-lib.o.old 37781 523 6752 45056 b000 drivers/net/wireless/iwlwifi/iwl-3945.o.new 37781 523 6752 45056 b000 drivers/net/wireless/iwlwifi/iwl-3945.o.old Changed b43_nphy_write_clip_detection to take a const u16 * Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-lib.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index 881475cf5ad7..c4491f7641fe 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -1996,7 +1996,7 @@ static void iwlagn_set_kill_ack_msk(struct iwl_priv *priv,
1996 struct iwl_bt_uart_msg *uart_msg) 1996 struct iwl_bt_uart_msg *uart_msg)
1997{ 1997{
1998 u8 kill_ack_msk; 1998 u8 kill_ack_msk;
1999 __le32 bt_kill_ack_msg[2] = { 1999 static const __le32 bt_kill_ack_msg[2] = {
2000 cpu_to_le32(0xFFFFFFF), cpu_to_le32(0xFFFFFC00) }; 2000 cpu_to_le32(0xFFFFFFF), cpu_to_le32(0xFFFFFC00) };
2001 2001
2002 kill_ack_msk = (((BT_UART_MSG_FRAME3A2DP_MSK | 2002 kill_ack_msk = (((BT_UART_MSG_FRAME3A2DP_MSK |
@@ -2280,7 +2280,7 @@ static const char *get_csr_string(int cmd)
2280void iwl_dump_csr(struct iwl_priv *priv) 2280void iwl_dump_csr(struct iwl_priv *priv)
2281{ 2281{
2282 int i; 2282 int i;
2283 u32 csr_tbl[] = { 2283 static const u32 csr_tbl[] = {
2284 CSR_HW_IF_CONFIG_REG, 2284 CSR_HW_IF_CONFIG_REG,
2285 CSR_INT_COALESCING, 2285 CSR_INT_COALESCING,
2286 CSR_INT, 2286 CSR_INT,
@@ -2339,7 +2339,7 @@ int iwl_dump_fh(struct iwl_priv *priv, char **buf, bool display)
2339 int pos = 0; 2339 int pos = 0;
2340 size_t bufsz = 0; 2340 size_t bufsz = 0;
2341#endif 2341#endif
2342 u32 fh_tbl[] = { 2342 static const u32 fh_tbl[] = {
2343 FH_RSCSR_CHNL0_STTS_WPTR_REG, 2343 FH_RSCSR_CHNL0_STTS_WPTR_REG,
2344 FH_RSCSR_CHNL0_RBDCB_BASE_REG, 2344 FH_RSCSR_CHNL0_RBDCB_BASE_REG,
2345 FH_RSCSR_CHNL0_WPTR, 2345 FH_RSCSR_CHNL0_WPTR,