/* Returns 1 if fixup matches phydev in bus_id and phy_uid. Fixups can be set to match any in one or more fields.  */
static int phy_needs_fixup(struct phy_device *phydev, struct phy_fixup *fixup)
/* Returns 1 if fixup matches phydev in bus_id and phy_uid. Fixups can be set to match any in one or more fields.  */
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, PHY_ANY_ID) != 0)
			return 0;
	if ((fixup->phy_uid & fixup->phy_uid_mask) !=
			(phydev->phy_id & fixup->phy_uid_mask))
		if (fixup->phy_uid != PHY_ANY_UID)
			return 0;
	return 1;
}