summaryrefslogtreecommitdiff
path: root/drivers/net/phy/marvell10g.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-11-29 00:31:03 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-06-07 11:26:46 +0100
commit42e1e52dd64efa7b1b9a4e91da226016e46e2b25 (patch)
treef61727aea61655d77e45cf33b36df8ca02c7d661 /drivers/net/phy/marvell10g.c
parentce6a281bc49df8f708428d7613296d857878dda6 (diff)
net: phy: add helpers for comparing phy IDs
There are several places which open code comparing PHY IDs. Provide a couple of helpers to assist with this, using a slightly simpler test than the original: - phy_id_compare() compares two arbitary PHY IDs and a mask of the significant bits in the ID. - phydev_id_compare() compares the bound phydev with the specified PHY ID, using the bound driver's mask. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/net/phy/marvell10g.c')
0 files changed, 0 insertions, 0 deletions