summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-11-29 00:31:03 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2020-10-12 21:41:17 +0100
commitd372d5db0172c637a9f04ab5522341dffc74cb41 (patch)
tree21b2a59fdab0ac2e9352f7b20af04cca9e35c226 /Documentation
parent376fa94406edf70f8b86e68053bd653e2c2d8d08 (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 'Documentation')
0 files changed, 0 insertions, 0 deletions