aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2023-05-19 14:03:59 +0100
committerDavid S. Miller <davem@davemloft.net>2023-05-22 11:21:48 +0100
commit4b159f5048b90844679dad08afb3240c1957aba1 (patch)
tree51ccfbf4150eb0ed08c0ce77ef33c28591b0355d /net/unix/af_unix.c
parent8b6b7c1190c3da1137d320c3de5e8d7f69baba5b (diff)
downloadlinux-4b159f5048b90844679dad08afb3240c1957aba1.tar.gz
linux-4b159f5048b90844679dad08afb3240c1957aba1.tar.bz2
linux-4b159f5048b90844679dad08afb3240c1957aba1.zip
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> Reviewed-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions