Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: Clean coding style in vitesse phy

- Remove trailing white space
- Remove spaces before tag
- Fix comments

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Michal Simek and committed by
David S. Miller
2a8626d1 c7d9d6a1

+11 -12
+11 -12
drivers/net/phy/vitesse.c
··· 44 44 #define MII_VSC8244_ISTAT_DUPLEX 0x1000 45 45 46 46 /* Vitesse Auxiliary Control/Status Register */ 47 - #define MII_VSC8244_AUX_CONSTAT 0x1c 48 - #define MII_VSC8244_AUXCONSTAT_INIT 0x0000 49 - #define MII_VSC8244_AUXCONSTAT_DUPLEX 0x0020 50 - #define MII_VSC8244_AUXCONSTAT_SPEED 0x0018 51 - #define MII_VSC8244_AUXCONSTAT_GBIT 0x0010 52 - #define MII_VSC8244_AUXCONSTAT_100 0x0008 47 + #define MII_VSC8244_AUX_CONSTAT 0x1c 48 + #define MII_VSC8244_AUXCONSTAT_INIT 0x0000 49 + #define MII_VSC8244_AUXCONSTAT_DUPLEX 0x0020 50 + #define MII_VSC8244_AUXCONSTAT_SPEED 0x0018 51 + #define MII_VSC8244_AUXCONSTAT_GBIT 0x0010 52 + #define MII_VSC8244_AUXCONSTAT_100 0x0008 53 53 54 54 #define MII_VSC8221_AUXCONSTAT_INIT 0x0004 /* need to set this bit? */ 55 55 #define MII_VSC8221_AUXCONSTAT_RESERVED 0x0004 ··· 100 100 static int vsc824x_ack_interrupt(struct phy_device *phydev) 101 101 { 102 102 int err = 0; 103 - 104 - /* 105 - * Don't bother to ACK the interrupts if interrupts 103 + 104 + /* Don't bother to ACK the interrupts if interrupts 106 105 * are disabled. The 824x cannot clear the interrupts 107 106 * if they are disabled. 108 107 */ ··· 121 122 MII_VSC8244_IMASK_MASK : 122 123 MII_VSC8221_IMASK_MASK); 123 124 else { 124 - /* 125 - * The Vitesse PHY cannot clear the interrupt 125 + /* The Vitesse PHY cannot clear the interrupt 126 126 * once it has disabled them, so we clear them first 127 127 */ 128 128 err = phy_read(phydev, MII_VSC8244_ISTAT); ··· 144 146 return err; 145 147 146 148 /* Perhaps we should set EXT_CON1 based on the interface? 147 - Options are 802.3Z SerDes or SGMII */ 149 + * Options are 802.3Z SerDes or SGMII 150 + */ 148 151 } 149 152 150 153 /* Vitesse 824x */