提交 c366ce28 编写于 作者: Ł Łukasz Stelmach 提交者: David S. Miller

net: ax88796c: use bit numbers insetad of bit masks

Change the values of EVENT_* constants from bit masks to bit numbers as
accepted by {clear,set,test}_bit() functions.
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NŁukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cf9acc90
...@@ -127,9 +127,9 @@ struct ax88796c_device { ...@@ -127,9 +127,9 @@ struct ax88796c_device {
#define AX_PRIV_FLAGS_MASK (AX_CAP_COMP) #define AX_PRIV_FLAGS_MASK (AX_CAP_COMP)
unsigned long flags; unsigned long flags;
#define EVENT_INTR BIT(0) #define EVENT_INTR 0
#define EVENT_TX BIT(1) #define EVENT_TX 1
#define EVENT_SET_MULTI BIT(2) #define EVENT_SET_MULTI 2
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册