[PATCH 1/2] net: phy: marvell: Use BIT() macro for flags

From: Kai-Heng Feng
Date: Thu Jan 13 2022 - 23:08:15 EST


Use BIT() macro to make adding new flags easier.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@xxxxxxxxxxxxx>
---
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