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
@@ -114,7 +114,7 @@ EXPORT_SYMBOL(phy_register_fixup_for_id);
|
||||
*/
|
||||
static int phy_needs_fixup(struct phy_device *phydev, struct phy_fixup *fixup)
|
||||
{
|
||||
if (strcmp(fixup->bus_id, dev_name(&phydev->dev)) != 0)
|
||||
if (strcmp(fixup->bus_id, phydev_name(phydev)) != 0)
|
||||
if (strcmp(fixup->bus_id, PHY_ANY_ID) != 0)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user