diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-21 14:30:20 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2021-02-15 13:22:04 +0000 |
commit | 77ec13486d8ea3169ee19d1cf2c17283642b22f0 (patch) | |
tree | 97f823b4ba3852611d164a8c681652ad9691a953 /include/linux/phy.h | |
parent | 0213e77a4035bfc814251f975cd995aef237723d (diff) |
net: phy: at803x: simplify custom phy id matching
The at803x driver contains a function, at803x_match_phy_id(), which
tests whether the PHY ID matches the value passed, comparing phy_id
with phydev->phy_id and testing all bits that have a "one" in the
mask, phydev->drv->phy_id_mask.
This is the same test that is used to match the driver, with phy_id
replaced with the driver specified ID, phydev->drv->phy_id.
Hence, we already know the value of the bits being tested if we look
at phydev->drv->phy_id directly, and we do not require a complicated
test to check them. Test directly against phydev->drv->phy_id instead.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/linux/phy.h')
0 files changed, 0 insertions, 0 deletions