aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/b43/phy_n.c9
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c6
3 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c
index 6facb8ab05d..afbfdf0ee6e 100644
--- a/drivers/net/wireless/b43/phy_n.c
+++ b/drivers/net/wireless/b43/phy_n.c
@@ -655,7 +655,8 @@ static void b43_nphy_tx_iq_workaround(struct b43_wldev *dev)
655} 655}
656 656
657/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/clip-detection */ 657/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/clip-detection */
658static void b43_nphy_write_clip_detection(struct b43_wldev *dev, u16 *clip_st) 658static void b43_nphy_write_clip_detection(struct b43_wldev *dev,
659 const u16 *clip_st)
659{ 660{
660 b43_phy_write(dev, B43_NPHY_C1_CLIP1THRES, clip_st[0]); 661 b43_phy_write(dev, B43_NPHY_C1_CLIP1THRES, clip_st[0]);
661 b43_phy_write(dev, B43_NPHY_C2_CLIP1THRES, clip_st[1]); 662 b43_phy_write(dev, B43_NPHY_C2_CLIP1THRES, clip_st[1]);
@@ -731,7 +732,7 @@ static void b43_nphy_stay_in_carrier_search(struct b43_wldev *dev, bool enable)
731 struct b43_phy_n *nphy = phy->n; 732 struct b43_phy_n *nphy = phy->n;
732 733
733 if (enable) { 734 if (enable) {
734 u16 clip[] = { 0xFFFF, 0xFFFF }; 735 static const u16 clip[] = { 0xFFFF, 0xFFFF };
735 if (nphy->deaf_count++ == 0) { 736 if (nphy->deaf_count++ == 0) {
736 nphy->classifier_state = b43_nphy_classifier(dev, 0, 0); 737 nphy->classifier_state = b43_nphy_classifier(dev, 0, 0);
737 b43_nphy_classifier(dev, 0x7, 0); 738 b43_nphy_classifier(dev, 0x7, 0);
@@ -843,7 +844,7 @@ static void b43_nphy_adjust_lna_gain_table(struct b43_wldev *dev)
843 u16 data[4]; 844 u16 data[4];
844 s16 gain[2]; 845 s16 gain[2];
845 u16 minmax[2]; 846 u16 minmax[2];
846 u16 lna_gain[4] = { -2, 10, 19, 25 }; 847 static const u16 lna_gain[4] = { -2, 10, 19, 25 };
847 848
848 if (nphy->hang_avoid) 849 if (nphy->hang_avoid)
849 b43_nphy_stay_in_carrier_search(dev, 1); 850 b43_nphy_stay_in_carrier_search(dev, 1);
@@ -2299,7 +2300,7 @@ static void b43_nphy_int_pa_set_tx_dig_filters(struct b43_wldev *dev)
2299{ 2300{
2300 int i, j; 2301 int i, j;
2301 /* B43_NPHY_TXF_20CO_S0A1, B43_NPHY_TXF_40CO_S0A1, unknown */ 2302 /* B43_NPHY_TXF_20CO_S0A1, B43_NPHY_TXF_40CO_S0A1, unknown */
2302 u16 offset[] = { 0x186, 0x195, 0x2C5 }; 2303 static const u16 offset[] = { 0x186, 0x195, 0x2C5 };
2303 2304
2304 for (i = 0; i < 3; i++) 2305 for (i = 0; i < 3; i++)
2305 for (j = 0; j < 15; j++) 2306 for (j = 0; j < 15; j++)
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 56f4ca7e49d..d39f449a9bb 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -116,7 +116,7 @@ void iwl3945_disable_events(struct iwl_priv *priv)
116 u32 base; /* SRAM address of event log header */ 116 u32 base; /* SRAM address of event log header */
117 u32 disable_ptr; /* SRAM address of event-disable bitmap array */ 117 u32 disable_ptr; /* SRAM address of event-disable bitmap array */
118 u32 array_size; /* # of u32 entries in array */ 118 u32 array_size; /* # of u32 entries in array */
119 u32 evt_disable[IWL_EVT_DISABLE_SIZE] = { 119 static const u32 evt_disable[IWL_EVT_DISABLE_SIZE] = {
120 0x00000000, /* 31 - 0 Event id numbers */ 120 0x00000000, /* 31 - 0 Event id numbers */
121 0x00000000, /* 63 - 32 */ 121 0x00000000, /* 63 - 32 */
122 0x00000000, /* 95 - 64 */ 122 0x00000000, /* 95 - 64 */
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index 881475cf5ad..c4491f7641f 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,