Skip to content

Commit

Permalink
net: phy: realtek: use the same indentation for all #defines
Browse files Browse the repository at this point in the history
This simply makes the code easier to read. No functional changes.

Signed-off-by: Martin Blumenstingl <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
xdarklight authored and davem330 committed Dec 3, 2017
1 parent a82f266 commit f609ab0
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions drivers/net/phy/realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,25 @@
#include <linux/phy.h>
#include <linux/module.h>

#define RTL821x_PHYSR 0x11
#define RTL821x_PHYSR_DUPLEX BIT(13)
#define RTL821x_PHYSR_SPEED GENMASK(15, 14)
#define RTL821x_PHYSR 0x11
#define RTL821x_PHYSR_DUPLEX BIT(13)
#define RTL821x_PHYSR_SPEED GENMASK(15, 14)

#define RTL821x_INER 0x12
#define RTL8211B_INER_INIT 0x6400
#define RTL8211E_INER_LINK_STATUS BIT(10)
#define RTL8211F_INER_LINK_STATUS BIT(4)
#define RTL821x_INER 0x12
#define RTL8211B_INER_INIT 0x6400
#define RTL8211E_INER_LINK_STATUS BIT(10)
#define RTL8211F_INER_LINK_STATUS BIT(4)

#define RTL821x_INSR 0x13
#define RTL821x_INSR 0x13

#define RTL821x_PAGE_SELECT 0x1f
#define RTL821x_PAGE_SELECT 0x1f

#define RTL8211F_INSR 0x1d
#define RTL8211F_TX_DELAY BIT(8)
#define RTL8211F_INSR 0x1d

#define RTL8201F_ISR 0x1e
#define RTL8201F_IER 0x13
#define RTL8211F_TX_DELAY BIT(8)

#define RTL8201F_ISR 0x1e
#define RTL8201F_IER 0x13

MODULE_DESCRIPTION("Realtek PHY driver");
MODULE_AUTHOR("Johnson Leung");
Expand Down

0 comments on commit f609ab0

Please sign in to comment.