summaryrefslogtreecommitdiff
path: root/LICENSES
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-06-21 14:30:20 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-10-12 21:41:16 +0100
commit376fa94406edf70f8b86e68053bd653e2c2d8d08 (patch)
tree4cc24a82fca4290735cc91dedeab8f3d6d3ede18 /LICENSES
parent1960ba10379b7ec973e516b96a9f230eaf6027ed (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 'LICENSES')
0 files changed, 0 insertions, 0 deletions