aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinder@kernel.org>2009-09-20 04:09:24 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:41 -0400
commitbdcf8ff3dd7e89ee4b3f303b6f7e5e04876f9d76 (patch)
tree310e99ee23ecaea09bb4e54c90fad3781bee6662 /drivers
parentc099752ae06784fcd9cd393cbf3dfbc6b54f4569 (diff)
b43: Comment unused functions lpphy_restore_dig_flt_state and lpphy_disable_rx_gain_override
Commenting unused functions lpphy_restore_dig_flt_state and lpphy_disable_rx_gain_override, may be we need these functions in future. This also fixed following compilation warnings : CC [M] drivers/net/wireless/b43/phy_lp.o drivers/net/wireless/b43/phy_lp.c:383: warning: ‘lpphy_restore_dig_flt_state’ defined but not used drivers/net/wireless/b43/phy_lp.c:891: warning: ‘lpphy_disable_rx_gain_override’ defined but not used Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/b43/phy_lp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c
index 1e318d815a5b..c6987b147af4 100644
--- a/drivers/net/wireless/b43/phy_lp.c
+++ b/drivers/net/wireless/b43/phy_lp.c
@@ -379,6 +379,8 @@ static void lpphy_save_dig_flt_state(struct b43_wldev *dev)
379 } 379 }
380} 380}
381 381
382/* lpphy_restore_dig_flt_state is unused but kept as a reference */
383#if 0
382static void lpphy_restore_dig_flt_state(struct b43_wldev *dev) 384static void lpphy_restore_dig_flt_state(struct b43_wldev *dev)
383{ 385{
384 static const u16 addr[] = { 386 static const u16 addr[] = {
@@ -399,6 +401,7 @@ static void lpphy_restore_dig_flt_state(struct b43_wldev *dev)
399 for (i = 0; i < ARRAY_SIZE(addr); i++) 401 for (i = 0; i < ARRAY_SIZE(addr); i++)
400 b43_phy_write(dev, addr[i], lpphy->dig_flt_state[i]); 402 b43_phy_write(dev, addr[i], lpphy->dig_flt_state[i]);
401} 403}
404#endif
402 405
403static void lpphy_baseband_rev2plus_init(struct b43_wldev *dev) 406static void lpphy_baseband_rev2plus_init(struct b43_wldev *dev)
404{ 407{
@@ -887,6 +890,8 @@ static void lpphy_rev2plus_set_rx_gain(struct b43_wldev *dev, u32 gain)
887 } 890 }
888} 891}
889 892
893/* lpphy_disable_rx_gain_override is unused but kept as a reference */
894#if 0
890static void lpphy_disable_rx_gain_override(struct b43_wldev *dev) 895static void lpphy_disable_rx_gain_override(struct b43_wldev *dev)
891{ 896{
892 b43_phy_mask(dev, B43_LPPHY_RF_OVERRIDE_0, 0xFFFE); 897 b43_phy_mask(dev, B43_LPPHY_RF_OVERRIDE_0, 0xFFFE);
@@ -902,6 +907,7 @@ static void lpphy_disable_rx_gain_override(struct b43_wldev *dev)
902 b43_phy_mask(dev, B43_LPPHY_RF_OVERRIDE_2, 0xFDFF); 907 b43_phy_mask(dev, B43_LPPHY_RF_OVERRIDE_2, 0xFDFF);
903 } 908 }
904} 909}
910#endif
905 911
906static void lpphy_enable_rx_gain_override(struct b43_wldev *dev) 912static void lpphy_enable_rx_gain_override(struct b43_wldev *dev)
907{ 913{