提交 d953a05d 编写于 作者: H Henry Ptasinski 提交者: Greg Kroah-Hartman

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: NHenry Ptasinski <henryp@broadcom.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 86566325
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册