Skip to contentSkip to conversation

net: ax88796c: use bit numbers insetad of bit masks

PATCH Applied Łukasz Stelmach 2 participants 2 messages Nov 16, 2021 – Nov 17, 2021 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20211116213352eucas1p1d5481ca560d4fe712a346fd8ce792e7a@eucas1p1.samsung.com

Łukasz Stelmach

author maintainer
#1 lore raw

PATCH 1/1 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.

---
 drivers/net/ethernet/asix/ax88796c_main.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/asix/ax88796c_main.h +3 -3
index 80263c3cef75..4a83c991dcbe 100644
@@ -127,9 +127,9 @@ struct ax88796c_device {
 		#define AX_PRIV_FLAGS_MASK	(AX_CAP_COMP)
 
 	unsigned long		flags;
-		#define EVENT_INTR		BIT(0)
-		#define EVENT_TX		BIT(1)
-		#define EVENT_SET_MULTI		BIT(2)
+		#define EVENT_INTR		0
+		#define EVENT_TX		1
+		#define EVENT_SET_MULTI		2
 
 };
 
Signature · 1 line
2.30.2
#2 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 8 lines · On Tue, 16 Nov 2021 22:29:15 +0100 you wrote:

Change the values of EVENT_* constants from bit masks to bit numbers as accepted by {clear,set,test}_bit() functions.

---
 drivers/net/ethernet/asix/ax88796c_main.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Here is the summary with links:
- net: ax88796c: use bit numbers insetad of bit masks

    https://git.kernel.org/netdev/net/c/c366ce28750e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html