From: Arun Ramadoss Date: Fri, 4 Mar 2022 09:43:57 +0000 (+0530) Subject: net: phy: used the PHY_ID_MATCH_MODEL macro for LAN87XX X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=79cea9a9c93a42b6f9344a4128c5030df212552c;p=linux.git net: phy: used the PHY_ID_MATCH_MODEL macro for LAN87XX Used the PHY_ID_MATCH_MODEL MACRO for describing the phy_id and phy_id_mask. Signed-off-by: Arun Ramadoss Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/microchip_t1.c b/drivers/net/phy/microchip_t1.c index c6a8c22efcce4..e4801d5ea7933 100644 --- a/drivers/net/phy/microchip_t1.c +++ b/drivers/net/phy/microchip_t1.c @@ -9,6 +9,8 @@ #include #include +#define PHY_ID_LAN87XX 0x0007c150 + /* External Register Control Register */ #define LAN87XX_EXT_REG_CTL (0x14) #define LAN87XX_EXT_REG_CTL_RD_CTL (0x1000) @@ -496,8 +498,7 @@ static int lan87xx_cable_test_get_status(struct phy_device *phydev, static struct phy_driver microchip_t1_phy_driver[] = { { - .phy_id = 0x0007c150, - .phy_id_mask = 0xfffffff0, + PHY_ID_MATCH_MODEL(PHY_ID_LAN87XX), .name = "Microchip LAN87xx T1", .flags = PHY_POLL_CABLE_TEST, @@ -518,7 +519,7 @@ static struct phy_driver microchip_t1_phy_driver[] = { module_phy_driver(microchip_t1_phy_driver); static struct mdio_device_id __maybe_unused microchip_t1_tbl[] = { - { 0x0007c150, 0xfffffff0 }, + { PHY_ID_MATCH_MODEL(PHY_ID_LAN87XX) }, { } };