Russell King 4b159f5048 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>
2023-05-22 11:21:48 +01:00
..
2023-04-25 18:44:10 -07:00
2023-05-05 12:56:55 -07:00
2023-05-01 12:06:20 -07:00
2023-04-16 11:08:07 +03:00
2023-04-27 11:53:57 -07:00
2023-04-24 15:15:31 +02:00
2023-04-29 11:04:14 -07:00
2023-04-26 15:39:25 -07:00