lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 14 Jan 2022 12:07:53 +0800
From:   Kai-Heng Feng <kai.heng.feng@...onical.com>
To:     peppe.cavallaro@...com, alexandre.torgue@...s.st.com,
        joabreu@...opsys.com
Cc:     Kai-Heng Feng <kai.heng.feng@...onical.com>,
        "David S. Miller" <davem@...emloft.net>,
        Marek Behún <kabel@...nel.org>,
        Andrew Lunn <andrew@...n.ch>,
        Ivan Bornyakov <i.bornyakov@...rotek.ru>,
        Pali Rohár <pali@...nel.org>,
        linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] net: phy: marvell: Use BIT() macro for flags

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ