diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-03-28 07:37:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-01 16:06:50 -0400 |
commit | 2d9d2385114ce8493134e0a738b7ffa1c35cacbe (patch) | |
tree | 043802d272bb57303d423bf8bd4c4acab756cb7d | |
parent | 2b6254dacfe64a52908fc7496d210e39e2732858 (diff) |
b43: mark some functions and structs static
This fixes some sparse warnings.
b43_nphy_set_rxantenna() was not used anywhere.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/b43/radio_2056.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/b43/sdio.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/b43/tables_nphy.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/b43/tables_phy_lcn.c | 6 |
5 files changed, 9 insertions, 13 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index e8486c1e091a..f9339e7ea6af 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -2789,10 +2789,6 @@ static void b43_nphy_iq_cal_gain_params(struct b43_wldev *dev, u16 core, | |||
2789 | * Tx and Rx | 2789 | * Tx and Rx |
2790 | **************************************************/ | 2790 | **************************************************/ |
2791 | 2791 | ||
2792 | void b43_nphy_set_rxantenna(struct b43_wldev *dev, int antenna) | ||
2793 | {//TODO | ||
2794 | } | ||
2795 | |||
2796 | static void b43_nphy_op_adjust_txpower(struct b43_wldev *dev) | 2792 | static void b43_nphy_op_adjust_txpower(struct b43_wldev *dev) |
2797 | {//TODO | 2793 | {//TODO |
2798 | } | 2794 | } |
@@ -4892,7 +4888,7 @@ static void b43_nphy_superswitch_init(struct b43_wldev *dev, bool init) | |||
4892 | } | 4888 | } |
4893 | 4889 | ||
4894 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/Init/N */ | 4890 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/Init/N */ |
4895 | int b43_phy_initn(struct b43_wldev *dev) | 4891 | static int b43_phy_initn(struct b43_wldev *dev) |
4896 | { | 4892 | { |
4897 | struct ssb_sprom *sprom = dev->dev->bus_sprom; | 4893 | struct ssb_sprom *sprom = dev->dev->bus_sprom; |
4898 | struct b43_phy *phy = &dev->phy; | 4894 | struct b43_phy *phy = &dev->phy; |
diff --git a/drivers/net/wireless/b43/radio_2056.c b/drivers/net/wireless/b43/radio_2056.c index ce037fb6789a..ab1f55f23122 100644 --- a/drivers/net/wireless/b43/radio_2056.c +++ b/drivers/net/wireless/b43/radio_2056.c | |||
@@ -2980,7 +2980,7 @@ static const struct b2056_inittab_entry b2056_inittab_rev8_rx[] = { | |||
2980 | .rx = prefix##_rx, \ | 2980 | .rx = prefix##_rx, \ |
2981 | .rx_length = ARRAY_SIZE(prefix##_rx) | 2981 | .rx_length = ARRAY_SIZE(prefix##_rx) |
2982 | 2982 | ||
2983 | struct b2056_inittabs_pts b2056_inittabs[] = { | 2983 | static struct b2056_inittabs_pts b2056_inittabs[] = { |
2984 | [3] = { INITTABSPTS(b2056_inittab_rev3) }, | 2984 | [3] = { INITTABSPTS(b2056_inittab_rev3) }, |
2985 | [4] = { INITTABSPTS(b2056_inittab_rev4) }, | 2985 | [4] = { INITTABSPTS(b2056_inittab_rev4) }, |
2986 | [5] = { INITTABSPTS(b2056_inittab_rev5) }, | 2986 | [5] = { INITTABSPTS(b2056_inittab_rev5) }, |
diff --git a/drivers/net/wireless/b43/sdio.h b/drivers/net/wireless/b43/sdio.h index fb633094403a..1e93926f388f 100644 --- a/drivers/net/wireless/b43/sdio.h +++ b/drivers/net/wireless/b43/sdio.h | |||
@@ -25,12 +25,12 @@ void b43_sdio_exit(void); | |||
25 | #else /* CONFIG_B43_SDIO */ | 25 | #else /* CONFIG_B43_SDIO */ |
26 | 26 | ||
27 | 27 | ||
28 | int b43_sdio_request_irq(struct b43_wldev *dev, | 28 | static inline int b43_sdio_request_irq(struct b43_wldev *dev, |
29 | void (*handler)(struct b43_wldev *dev)) | 29 | void (*handler)(struct b43_wldev *dev)) |
30 | { | 30 | { |
31 | return -ENODEV; | 31 | return -ENODEV; |
32 | } | 32 | } |
33 | void b43_sdio_free_irq(struct b43_wldev *dev) | 33 | static inline void b43_sdio_free_irq(struct b43_wldev *dev) |
34 | { | 34 | { |
35 | } | 35 | } |
36 | static inline int b43_sdio_init(void) | 36 | static inline int b43_sdio_init(void) |
diff --git a/drivers/net/wireless/b43/tables_nphy.c b/drivers/net/wireless/b43/tables_nphy.c index aaca60c6f575..110510d53958 100644 --- a/drivers/net/wireless/b43/tables_nphy.c +++ b/drivers/net/wireless/b43/tables_nphy.c | |||
@@ -2800,7 +2800,7 @@ static const struct nphy_rf_control_override_rev7 | |||
2800 | { 0x0010, 0x344, 0x345, 0x0010, 4 }, | 2800 | { 0x0010, 0x344, 0x345, 0x0010, 4 }, |
2801 | }; | 2801 | }; |
2802 | 2802 | ||
2803 | struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_wa_phy6_radio11_ghz2 = { | 2803 | static struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_wa_phy6_radio11_ghz2 = { |
2804 | { 10, 14, 19, 27 }, | 2804 | { 10, 14, 19, 27 }, |
2805 | { -5, 6, 10, 15 }, | 2805 | { -5, 6, 10, 15 }, |
2806 | { 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA }, | 2806 | { 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA }, |
@@ -2811,7 +2811,7 @@ struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_wa_phy6_radio11_ghz2 = { | |||
2811 | 0x18, 0x18, 0x18, | 2811 | 0x18, 0x18, 0x18, |
2812 | 0x01D0, 0x5, | 2812 | 0x01D0, 0x5, |
2813 | }; | 2813 | }; |
2814 | struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_workaround[2][4] = { | 2814 | static struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_workaround[2][4] = { |
2815 | { /* 2GHz */ | 2815 | { /* 2GHz */ |
2816 | { /* PHY rev 3 */ | 2816 | { /* PHY rev 3 */ |
2817 | { 7, 11, 16, 23 }, | 2817 | { 7, 11, 16, 23 }, |
diff --git a/drivers/net/wireless/b43/tables_phy_lcn.c b/drivers/net/wireless/b43/tables_phy_lcn.c index 5176363cadf2..e347b8d80ea4 100644 --- a/drivers/net/wireless/b43/tables_phy_lcn.c +++ b/drivers/net/wireless/b43/tables_phy_lcn.c | |||
@@ -313,7 +313,7 @@ static const u32 b43_lcntab_0x18[] = { | |||
313 | * TX gain. | 313 | * TX gain. |
314 | **************************************************/ | 314 | **************************************************/ |
315 | 315 | ||
316 | const struct b43_lcntab_tx_gain_tbl_entry | 316 | static const struct b43_lcntab_tx_gain_tbl_entry |
317 | b43_lcntab_tx_gain_tbl_2ghz_ext_pa_rev0[B43_LCNTAB_TX_GAIN_SIZE] = { | 317 | b43_lcntab_tx_gain_tbl_2ghz_ext_pa_rev0[B43_LCNTAB_TX_GAIN_SIZE] = { |
318 | { 0x03, 0x00, 0x1f, 0x0, 0x48 }, | 318 | { 0x03, 0x00, 0x1f, 0x0, 0x48 }, |
319 | { 0x03, 0x00, 0x1f, 0x0, 0x46 }, | 319 | { 0x03, 0x00, 0x1f, 0x0, 0x46 }, |
@@ -449,7 +449,7 @@ const struct b43_lcntab_tx_gain_tbl_entry | |||
449 | * SW control. | 449 | * SW control. |
450 | **************************************************/ | 450 | **************************************************/ |
451 | 451 | ||
452 | const u16 b43_lcntab_sw_ctl_4313_epa_rev0[] = { | 452 | static const u16 b43_lcntab_sw_ctl_4313_epa_rev0[] = { |
453 | 0x0002, 0x0008, 0x0004, 0x0001, 0x0002, 0x0008, | 453 | 0x0002, 0x0008, 0x0004, 0x0001, 0x0002, 0x0008, |
454 | 0x0004, 0x0001, 0x0002, 0x0008, 0x0004, 0x0001, | 454 | 0x0004, 0x0001, 0x0002, 0x0008, 0x0004, 0x0001, |
455 | 0x0002, 0x0008, 0x0004, 0x0001, 0x0002, 0x0008, | 455 | 0x0002, 0x0008, 0x0004, 0x0001, 0x0002, 0x0008, |
@@ -631,7 +631,7 @@ static void b43_phy_lcn_upload_static_tables(struct b43_wldev *dev) | |||
631 | lcntab_upload(dev, B43_LCNTAB32(0x18, 0), b43_lcntab_0x18); | 631 | lcntab_upload(dev, B43_LCNTAB32(0x18, 0), b43_lcntab_0x18); |
632 | } | 632 | } |
633 | 633 | ||
634 | void b43_phy_lcn_load_tx_gain_tab(struct b43_wldev *dev, | 634 | static void b43_phy_lcn_load_tx_gain_tab(struct b43_wldev *dev, |
635 | const struct b43_lcntab_tx_gain_tbl_entry *gain_table) | 635 | const struct b43_lcntab_tx_gain_tbl_entry *gain_table) |
636 | { | 636 | { |
637 | u32 i; | 637 | u32 i; |