summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/b43/phy_common.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-09-03 12:12:20 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-09-08 14:00:16 -0400
commitcb24f57fe6f94a445fad8fab6ebdde7c51857895 (patch)
tree33e61e709af26c641632ebc4da74c3a5ad457562 /drivers/net/wireless/b43/phy_common.c
parent2b80848e3818fb1c8ccddc105b065a86c68afa9d (diff)
downloadlwn-cb24f57fe6f94a445fad8fab6ebdde7c51857895.tar.gz
lwn-cb24f57fe6f94a445fad8fab6ebdde7c51857895.zip
b43: Move Analog switching into phy code
This moves the Analog switching code into the PHY files. 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_common.c')
-rw-r--r--drivers/net/wireless/b43/phy_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c
index e12fca69a970..4d4345d76abf 100644
--- a/drivers/net/wireless/b43/phy_common.c
+++ b/drivers/net/wireless/b43/phy_common.c
@@ -374,3 +374,8 @@ int b43_phy_shm_tssi_read(struct b43_wldev *dev, u16 shm_offset)
return average;
}
+
+void b43_phyop_switch_analog_generic(struct b43_wldev *dev, bool on)
+{
+ b43_write16(dev, B43_MMIO_PHY0, on ? 0 : 0xF4);
+}