lkml.org 
[lkml]   [2022]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] net: phy: marvell: Use BIT() macro for flags
Date
Use BIT() macro to make adding new flags easier.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
---
include/linux/marvell_phy.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/marvell_phy.h b/include/linux/marvell_phy.h
index 0f06c2287b527..ea5995d9ad6c1 100644
--- a/include/linux/marvell_phy.h
+++ b/include/linux/marvell_phy.h
@@ -40,8 +40,8 @@
#define MARVELL_PHY_FAMILY_ID(id) ((id) >> 4)

/* struct phy_device dev_flags definitions */
-#define MARVELL_PHY_M1145_FLAGS_RESISTANCE 0x00000001
-#define MARVELL_PHY_M1118_DNS323_LEDS 0x00000002
-#define MARVELL_PHY_LED0_LINK_LED1_ACTIVE 0x00000004
+#define MARVELL_PHY_M1145_FLAGS_RESISTANCE BIT(0)
+#define MARVELL_PHY_M1118_DNS323_LEDS BIT(1)
+#define MARVELL_PHY_LED0_LINK_LED1_ACTIVE BIT(2)

#endif /* _MARVELL_PHY_H */
--
2.33.1
\
 
 \ /
  Last update: 2022-01-14 05:09    [W:0.221 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site