staging: brcm80211: Use linux/bitops.h instead of bitfuncs.h
authorHenry Ptasinski <henryp@broadcom.com>
Fri, 8 Oct 2010 02:52:05 +0000 (19:52 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Oct 2010 03:03:25 +0000 (20:03 -0700)
Use ffs() from linux/bitops.h, instead of the locally defined find_msbit().

Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/phy/wlc_phy_lcn.c

index 6b8749a10a509b4a62627698cca3a48cf8f8c81c..1b90f79eaa5762d90b7afc2a648a960ea0861c89 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/string.h>
 #include <linuxver.h>
 #include <siutils.h>
-#include <bitfuncs.h>
+#include <linux/bitops.h>
 #include <hndpmu.h>
 
 #include <wlc_phy_radio.h>
@@ -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;
This page took 0.029145 seconds and 5 git commands to generate.