diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-11-29 00:31:03 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-29 01:19:04 +0100 |
commit | f297a3ddc799fcdc72fb7069a99a5788263ba5b8 (patch) | |
tree | fd92381e7159bf45e8e6d3ee1dd6d3c7f6c100f2 /samples/watchdog | |
parent | 144ac64127878df7103c6cf428b1bd96c6fc2be0 (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 'samples/watchdog')
0 files changed, 0 insertions, 0 deletions