diff options
author | Shaohui Xie <Shaohui.Xie@freescale.com> | 2015-01-12 21:30:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-13 16:44:24 -0500 |
commit | 49ff2d3f040c133a9caeb862c9c2cd58a561d2c3 (patch) | |
tree | 2b6f611d5337c023c42ceaab6b57f9c7e5deb99c /drivers/net | |
parent | e54bfe9d7e5823f8b460e8de371f695ada41a0c1 (diff) |
net/fsl: replace (1 << x) with BIT(x) for bit definitions in xgmac_mdio
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/freescale/xgmac_mdio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c index a492e5006756..3a76e235fff6 100644 --- a/drivers/net/ethernet/freescale/xgmac_mdio.c +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c | |||
@@ -34,17 +34,17 @@ struct tgec_mdio_controller { | |||
34 | 34 | ||
35 | #define MDIO_STAT_ENC BIT(6) | 35 | #define MDIO_STAT_ENC BIT(6) |
36 | #define MDIO_STAT_CLKDIV(x) (((x>>1) & 0xff) << 8) | 36 | #define MDIO_STAT_CLKDIV(x) (((x>>1) & 0xff) << 8) |
37 | #define MDIO_STAT_BSY (1 << 0) | 37 | #define MDIO_STAT_BSY BIT(0) |
38 | #define MDIO_STAT_RD_ER (1 << 1) | 38 | #define MDIO_STAT_RD_ER BIT(1) |
39 | #define MDIO_CTL_DEV_ADDR(x) (x & 0x1f) | 39 | #define MDIO_CTL_DEV_ADDR(x) (x & 0x1f) |
40 | #define MDIO_CTL_PORT_ADDR(x) ((x & 0x1f) << 5) | 40 | #define MDIO_CTL_PORT_ADDR(x) ((x & 0x1f) << 5) |
41 | #define MDIO_CTL_PRE_DIS (1 << 10) | 41 | #define MDIO_CTL_PRE_DIS BIT(10) |
42 | #define MDIO_CTL_SCAN_EN (1 << 11) | 42 | #define MDIO_CTL_SCAN_EN BIT(11) |
43 | #define MDIO_CTL_POST_INC (1 << 14) | 43 | #define MDIO_CTL_POST_INC BIT(14) |
44 | #define MDIO_CTL_READ (1 << 15) | 44 | #define MDIO_CTL_READ BIT(15) |
45 | 45 | ||
46 | #define MDIO_DATA(x) (x & 0xffff) | 46 | #define MDIO_DATA(x) (x & 0xffff) |
47 | #define MDIO_DATA_BSY (1 << 31) | 47 | #define MDIO_DATA_BSY BIT(31) |
48 | 48 | ||
49 | /* | 49 | /* |
50 | * Wait until the MDIO bus is free | 50 | * Wait until the MDIO bus is free |