Messages in this thread Patch in this message | | | From | Kai-Heng Feng <> | Subject | [PATCH 1/2] net: phy: marvell: Use BIT() macro for flags | Date | Fri, 14 Jan 2022 12:07:53 +0800 |
| |
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
| |