diff options
author | Russell King <[email protected]> | 2021-07-20 14:33:49 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-07-20 07:27:01 -0700 |
commit | 8887ca5474bd9ddb56cabc88856bb035774e0041 (patch) | |
tree | 80164db7094202dcd914e970ed4c7f69c6ec92f4 /net/switchdev/switchdev.c | |
parent | fa660684e5319a5c37deaf4a329d8026b52d64e7 (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 in the driver's 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 <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions