summaryrefslogtreecommitdiff
path: root/ipc
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>2022-06-21 10:57:38 +0100
commit97678827eeb16cb5c5bc5a2d9389e37191cb54b7 (patch)
treefe31b88bcbe62b1ba6d0cb3f7114ae0e9df66b14 /ipc
parent78353a06b7aa098b1dc5bad04970b02cbcf312df (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 'ipc')
0 files changed, 0 insertions, 0 deletions