b43: Convert usage of b43_radio_mask()
This patch converts code to use the new b43_radio_mask() API. The semantic patch that makes this change is as follows: // <smpl> @@ expression dev, addr, mask; @@ -b43_radio_write16(dev, addr, b43_radio_read16(dev, addr) & mask); +b43_radio_mask(dev, addr, mask); // </smpl> Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
4cf507696a
commit
3718582a66
@@ -231,8 +231,7 @@ static void lo_measure_txctl_values(struct b43_wldev *dev)
|
||||
|
||||
reg = lo_txctl_register_table(dev, &mask, NULL);
|
||||
mask = ~mask;
|
||||
b43_radio_write16(dev, reg, b43_radio_read16(dev, reg)
|
||||
& mask);
|
||||
b43_radio_mask(dev, reg, mask);
|
||||
|
||||
if (has_tx_magnification(phy)) {
|
||||
int i, j;
|
||||
@@ -269,8 +268,7 @@ static void lo_measure_txctl_values(struct b43_wldev *dev)
|
||||
} else {
|
||||
lo->tx_magn = 0;
|
||||
lo->tx_bias = 0;
|
||||
b43_radio_write16(dev, 0x52, b43_radio_read16(dev, 0x52)
|
||||
& 0xFFF0); /* TX bias == 0 */
|
||||
b43_radio_mask(dev, 0x52, 0xFFF0); /* TX bias == 0 */
|
||||
}
|
||||
lo->txctl_measured_time = jiffies;
|
||||
}
|
||||
|
Reference in New Issue
Block a user