Commit ccaa953e authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

phy: Consistently use addr for address on an MII bus

Within phy.h, an address on an MII bus has been called both addr and
phy_id. phy_id is particularly confusion, since it also means the ID
found in register 3, if the device on the bus is a phy. Consistently
use addr.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e0efaf6
...@@ -158,8 +158,8 @@ struct mii_bus { ...@@ -158,8 +158,8 @@ struct mii_bus {
const char *name; const char *name;
char id[MII_BUS_ID_SIZE]; char id[MII_BUS_ID_SIZE];
void *priv; void *priv;
int (*read)(struct mii_bus *bus, int phy_id, int regnum); int (*read)(struct mii_bus *bus, int addr, int regnum);
int (*write)(struct mii_bus *bus, int phy_id, int regnum, u16 val); int (*write)(struct mii_bus *bus, int addr, int regnum, u16 val);
int (*reset)(struct mii_bus *bus); int (*reset)(struct mii_bus *bus);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment