phy: add phydev_name() wrapper
Add a phydev_name() function, to help with moving some structure members from phy_device. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
72ba48be3e
commit
84eff6d194
@@ -170,7 +170,7 @@ static int bcm7xxx_28nm_config_init(struct phy_device *phydev)
|
||||
int ret = 0;
|
||||
|
||||
pr_info_once("%s: %s PHY revision: 0x%02x, patch: %d\n",
|
||||
dev_name(&phydev->dev), phydev->drv->name, rev, patch);
|
||||
phydev_name(phydev), phydev->drv->name, rev, patch);
|
||||
|
||||
/* Dummy read to a register to workaround an issue upon reset where the
|
||||
* internal inverter may not allow the first MDIO transaction to pass
|
||||
|
Reference in New Issue
Block a user