From: oliver@schinagl.nl Date: Tue, 8 Nov 2016 16:38:57 +0000 (+0100) Subject: net: phy: realtek: Use the BIT() macro X-Git-Tag: v2017.01-rc2~44 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=020f67628d7f3e8f1c3ca93e8388d6b5ee128ec2;p=u-boot net: phy: realtek: Use the BIT() macro The BIT macro is the preferred method to set bits. This patch adds the bit macro and converts bit invocations. Signed-off-by: Olliver Schinagl Acked-by: Joe Hershberger --- diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 7a99cb0234..35b934b8f0 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -9,13 +9,14 @@ */ #include #include +#include #include #define PHY_AUTONEGOTIATE_TIMEOUT 5000 /* RTL8211x 1000BASE-T Control Register */ -#define MIIM_RTL8211x_CTRL1000T_MSCE (1 << 12); -#define MIIM_RTL8211X_CTRL1000T_MASTER (1 << 11); +#define MIIM_RTL8211x_CTRL1000T_MSCE BIT(12); +#define MIIM_RTL8211X_CTRL1000T_MASTER BIT(11); /* RTL8211x PHY Status Register */ #define MIIM_RTL8211x_PHY_STATUS 0x11