diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-26 03:13:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-26 03:13:46 -0500 |
commit | 11ab72a7c94f3ccac05b85928875fdc4f1ed5e9b (patch) | |
tree | 6888ad0954955218aed1345b165b66843f69e9ce /drivers/net/wireless/b43 | |
parent | bf512bc827c84f77553538834fffe71604079f23 (diff) |
drivers/net/wireless/b43: fix sparse warnings: make symbols static
Fix this sparse warnings:
drivers/net/wireless/b43/phy_a.c:80:6: warning: symbol 'b43_radio_set_tx_iq' was not declared. Should it be static?
drivers/net/wireless/b43/phy_a.c:150:6: warning: symbol 'b43_radio_init2060' was not declared. Should it be static?
drivers/net/wireless/b43/phy_g.c:57:10: warning: symbol 'b43_radio_channel_codes_bg' was not declared. Should it be static?
drivers/net/wireless/b43/phy_g.c:218:6: warning: symbol 'b43_set_txpower_g' was not declared. Should it be static?
drivers/net/wireless/b43/phy_g.c:386:6: warning: symbol 'b43_nrssi_hw_write' was not declared. Should it be static?
drivers/net/wireless/b43/phy_g.c:393:5: warning: symbol 'b43_nrssi_hw_read' was not declared. Should it be static?
drivers/net/wireless/b43/phy_g.c:404:6: warning: symbol 'b43_nrssi_hw_update' was not declared. Should it be static?
drivers/net/wireless/b43/phy_g.c:418:6: warning: symbol 'b43_nrssi_mem_update' was not declared. Should it be static?
drivers/net/wireless/b43/phy_g.c:592:6: warning: symbol 'b43_calc_nrssi_slope' was not declared. Should it be static?
drivers/net/wireless/b43/phy_g.c:1357:5: warning: symbol 'b43_radio_init2050' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/phy_a.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/b43/phy_g.c | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/b43/phy_a.c b/drivers/net/wireless/b43/phy_a.c index 0f1a84c9de61..7fe9d1701624 100644 --- a/drivers/net/wireless/b43/phy_a.c +++ b/drivers/net/wireless/b43/phy_a.c | |||
@@ -77,7 +77,7 @@ static s8 b43_aphy_estimate_power_out(struct b43_wldev *dev, s8 tssi) | |||
77 | } | 77 | } |
78 | #endif | 78 | #endif |
79 | 79 | ||
80 | void b43_radio_set_tx_iq(struct b43_wldev *dev) | 80 | static void b43_radio_set_tx_iq(struct b43_wldev *dev) |
81 | { | 81 | { |
82 | static const u8 data_high[5] = { 0x00, 0x40, 0x80, 0x90, 0xD0 }; | 82 | static const u8 data_high[5] = { 0x00, 0x40, 0x80, 0x90, 0xD0 }; |
83 | static const u8 data_low[5] = { 0x00, 0x01, 0x05, 0x06, 0x0A }; | 83 | static const u8 data_low[5] = { 0x00, 0x01, 0x05, 0x06, 0x0A }; |
@@ -147,7 +147,7 @@ static void aphy_channel_switch(struct b43_wldev *dev, unsigned int channel) | |||
147 | //FIXME b43_phy_xmitpower(dev); | 147 | //FIXME b43_phy_xmitpower(dev); |
148 | } | 148 | } |
149 | 149 | ||
150 | void b43_radio_init2060(struct b43_wldev *dev) | 150 | static void b43_radio_init2060(struct b43_wldev *dev) |
151 | { | 151 | { |
152 | b43_radio_write16(dev, 0x0004, 0x00C0); | 152 | b43_radio_write16(dev, 0x0004, 0x00C0); |
153 | b43_radio_write16(dev, 0x0005, 0x0008); | 153 | b43_radio_write16(dev, 0x0005, 0x0008); |
diff --git a/drivers/net/wireless/b43/phy_g.c b/drivers/net/wireless/b43/phy_g.c index 3b1d673796cc..caac4a45f0bf 100644 --- a/drivers/net/wireless/b43/phy_g.c +++ b/drivers/net/wireless/b43/phy_g.c | |||
@@ -54,7 +54,7 @@ static const s8 b43_tssi2dbm_g_table[] = { | |||
54 | -20, -20, -20, -20, | 54 | -20, -20, -20, -20, |
55 | }; | 55 | }; |
56 | 56 | ||
57 | const u8 b43_radio_channel_codes_bg[] = { | 57 | static const u8 b43_radio_channel_codes_bg[] = { |
58 | 12, 17, 22, 27, | 58 | 12, 17, 22, 27, |
59 | 32, 37, 42, 47, | 59 | 32, 37, 42, 47, |
60 | 52, 57, 62, 67, | 60 | 52, 57, 62, 67, |
@@ -215,9 +215,9 @@ void b43_gphy_set_baseband_attenuation(struct b43_wldev *dev, | |||
215 | } | 215 | } |
216 | 216 | ||
217 | /* Adjust the transmission power output (G-PHY) */ | 217 | /* Adjust the transmission power output (G-PHY) */ |
218 | void b43_set_txpower_g(struct b43_wldev *dev, | 218 | static void b43_set_txpower_g(struct b43_wldev *dev, |
219 | const struct b43_bbatt *bbatt, | 219 | const struct b43_bbatt *bbatt, |
220 | const struct b43_rfatt *rfatt, u8 tx_control) | 220 | const struct b43_rfatt *rfatt, u8 tx_control) |
221 | { | 221 | { |
222 | struct b43_phy *phy = &dev->phy; | 222 | struct b43_phy *phy = &dev->phy; |
223 | struct b43_phy_g *gphy = phy->g; | 223 | struct b43_phy_g *gphy = phy->g; |
@@ -383,14 +383,14 @@ static void b43_set_original_gains(struct b43_wldev *dev) | |||
383 | } | 383 | } |
384 | 384 | ||
385 | /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ | 385 | /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
386 | void b43_nrssi_hw_write(struct b43_wldev *dev, u16 offset, s16 val) | 386 | static void b43_nrssi_hw_write(struct b43_wldev *dev, u16 offset, s16 val) |
387 | { | 387 | { |
388 | b43_phy_write(dev, B43_PHY_NRSSILT_CTRL, offset); | 388 | b43_phy_write(dev, B43_PHY_NRSSILT_CTRL, offset); |
389 | b43_phy_write(dev, B43_PHY_NRSSILT_DATA, (u16) val); | 389 | b43_phy_write(dev, B43_PHY_NRSSILT_DATA, (u16) val); |
390 | } | 390 | } |
391 | 391 | ||
392 | /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ | 392 | /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
393 | s16 b43_nrssi_hw_read(struct b43_wldev *dev, u16 offset) | 393 | static s16 b43_nrssi_hw_read(struct b43_wldev *dev, u16 offset) |
394 | { | 394 | { |
395 | u16 val; | 395 | u16 val; |
396 | 396 | ||
@@ -401,7 +401,7 @@ s16 b43_nrssi_hw_read(struct b43_wldev *dev, u16 offset) | |||
401 | } | 401 | } |
402 | 402 | ||
403 | /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ | 403 | /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
404 | void b43_nrssi_hw_update(struct b43_wldev *dev, u16 val) | 404 | static void b43_nrssi_hw_update(struct b43_wldev *dev, u16 val) |
405 | { | 405 | { |
406 | u16 i; | 406 | u16 i; |
407 | s16 tmp; | 407 | s16 tmp; |
@@ -415,7 +415,7 @@ void b43_nrssi_hw_update(struct b43_wldev *dev, u16 val) | |||
415 | } | 415 | } |
416 | 416 | ||
417 | /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ | 417 | /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ |
418 | void b43_nrssi_mem_update(struct b43_wldev *dev) | 418 | static void b43_nrssi_mem_update(struct b43_wldev *dev) |
419 | { | 419 | { |
420 | struct b43_phy_g *gphy = dev->phy.g; | 420 | struct b43_phy_g *gphy = dev->phy.g; |
421 | s16 i, delta; | 421 | s16 i, delta; |
@@ -589,7 +589,7 @@ static void b43_calc_nrssi_offset(struct b43_wldev *dev) | |||
589 | b43_phy_write(dev, 0x0811, backup[1]); | 589 | b43_phy_write(dev, 0x0811, backup[1]); |
590 | } | 590 | } |
591 | 591 | ||
592 | void b43_calc_nrssi_slope(struct b43_wldev *dev) | 592 | static void b43_calc_nrssi_slope(struct b43_wldev *dev) |
593 | { | 593 | { |
594 | struct b43_phy *phy = &dev->phy; | 594 | struct b43_phy *phy = &dev->phy; |
595 | struct b43_phy_g *gphy = phy->g; | 595 | struct b43_phy_g *gphy = phy->g; |
@@ -1354,7 +1354,7 @@ struct init2050_saved_values { | |||
1354 | u16 phy_syncctl; | 1354 | u16 phy_syncctl; |
1355 | }; | 1355 | }; |
1356 | 1356 | ||
1357 | u16 b43_radio_init2050(struct b43_wldev *dev) | 1357 | static u16 b43_radio_init2050(struct b43_wldev *dev) |
1358 | { | 1358 | { |
1359 | struct b43_phy *phy = &dev->phy; | 1359 | struct b43_phy *phy = &dev->phy; |
1360 | struct init2050_saved_values sav; | 1360 | struct init2050_saved_values sav; |