diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-02-20 13:28:14 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:52:53 -0500 |
commit | 4cf507696ae41950cd430e7534180fddd624b3cd (patch) | |
tree | 6cb514d5ad42f016c4739066b709a93852a66621 /drivers/net/wireless/b43/phy_a.c | |
parent | 76e190cd4b3b9e79096df153edb04092433a797b (diff) |
b43: Convert usage of b43_radio_set()
This patch converts code to use the new b43_radio_set() API.
The semantic patch that makes this change is as follows:
// <smpl>
@@
expression dev, addr, set;
@@
-b43_radio_write16(dev, addr, b43_radio_read16(dev, addr) | set);
+b43_radio_set(dev, addr, set);
// </smpl>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy_a.c')
-rw-r--r-- | drivers/net/wireless/b43/phy_a.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/phy_a.c b/drivers/net/wireless/b43/phy_a.c index 6845d120bc2e..b07df38d5c21 100644 --- a/drivers/net/wireless/b43/phy_a.c +++ b/drivers/net/wireless/b43/phy_a.c | |||
@@ -227,16 +227,14 @@ static void b43_phy_ww(struct b43_wldev *dev) | |||
227 | b43_phy_mask(dev, B43_PHY_CRS0, ~B43_PHY_CRS0_EN); | 227 | b43_phy_mask(dev, B43_PHY_CRS0, ~B43_PHY_CRS0_EN); |
228 | b43_phy_set(dev, B43_PHY_OFDM(0x1B), 0x1000); | 228 | b43_phy_set(dev, B43_PHY_OFDM(0x1B), 0x1000); |
229 | b43_phy_maskset(dev, B43_PHY_OFDM(0x82), 0xF0FF, 0x0300); | 229 | b43_phy_maskset(dev, B43_PHY_OFDM(0x82), 0xF0FF, 0x0300); |
230 | b43_radio_write16(dev, 0x0009, | 230 | b43_radio_set(dev, 0x0009, 0x0080); |
231 | b43_radio_read16(dev, 0x0009) | 0x0080); | ||
232 | b43_radio_write16(dev, 0x0012, | 231 | b43_radio_write16(dev, 0x0012, |
233 | (b43_radio_read16(dev, 0x0012) & 0xFFFC) | 0x0002); | 232 | (b43_radio_read16(dev, 0x0012) & 0xFFFC) | 0x0002); |
234 | b43_wa_initgains(dev); | 233 | b43_wa_initgains(dev); |
235 | b43_phy_write(dev, B43_PHY_OFDM(0xBA), 0x3ED5); | 234 | b43_phy_write(dev, B43_PHY_OFDM(0xBA), 0x3ED5); |
236 | b = b43_phy_read(dev, B43_PHY_PWRDOWN); | 235 | b = b43_phy_read(dev, B43_PHY_PWRDOWN); |
237 | b43_phy_write(dev, B43_PHY_PWRDOWN, (b & 0xFFF8) | 0x0005); | 236 | b43_phy_write(dev, B43_PHY_PWRDOWN, (b & 0xFFF8) | 0x0005); |
238 | b43_radio_write16(dev, 0x0004, | 237 | b43_radio_set(dev, 0x0004, 0x0004); |
239 | b43_radio_read16(dev, 0x0004) | 0x0004); | ||
240 | for (i = 0x10; i <= 0x20; i++) { | 238 | for (i = 0x10; i <= 0x20; i++) { |
241 | b43_radio_write16(dev, 0x0013, i); | 239 | b43_radio_write16(dev, 0x0013, i); |
242 | curr_s = b43_phy_read(dev, B43_PHY_OTABLEQ) & 0x00FF; | 240 | curr_s = b43_phy_read(dev, B43_PHY_OTABLEQ) & 0x00FF; |