From d953a05d04b17b43f3bf4a183131e5c5e223ecaa Mon Sep 17 00:00:00 2001 From: Henry Ptasinski Date: Thu, 7 Oct 2010 19:52:05 -0700 Subject: [PATCH] staging: brcm80211: Use linux/bitops.h instead of bitfuncs.h Use ffs() from linux/bitops.h, instead of the locally defined find_msbit(). Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman --- drivers/staging/brcm80211/phy/wlc_phy_lcn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/brcm80211/phy/wlc_phy_lcn.c b/drivers/staging/brcm80211/phy/wlc_phy_lcn.c index 6b8749a10a50..1b90f79eaa57 100644 --- a/drivers/staging/brcm80211/phy/wlc_phy_lcn.c +++ b/drivers/staging/brcm80211/phy/wlc_phy_lcn.c @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include @@ -5196,7 +5196,7 @@ int32 wlc_lcnphy_rx_signal_power(phy_info_t *pi, int32 gain_index) { uint32 power = (received_power * 16); uint32 msb1, msb2, val1, val2, diff1, diff2; - msb1 = find_msbit(power); + msb1 = ffs(power) - 1; msb2 = msb1 + 1; val1 = 1 << msb1; val2 = 1 << msb2; -- 2.34.1