diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-03-21 19:36:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-22 22:43:00 +0300 |
commit | a6d99fcd3fc4f6e71630eba8e7f4d2b3b396c4c9 (patch) | |
tree | 7bc814a748d5ae18aa8508a799408bcc62ee9270 /drivers/net/phy/microchip.c | |
parent | 5f61367729b8c6e8c5f7068d49ff5e57f1e8a925 (diff) | |
download | linux-a6d99fcd3fc4f6e71630eba8e7f4d2b3b396c4c9.tar.xz |
net: phy: switch remaining users to phy_(read|write)_mmd()
Switch everyone over to using phy_read_mmd() and phy_write_mmd() now
that they are able to handle both Clause 22 indirect addressing and
Clause 45 direct addressing methods to the MMD registers.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/microchip.c')
-rw-r--r-- | drivers/net/phy/microchip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/phy/microchip.c b/drivers/net/phy/microchip.c index 324fbf6ad8ff..2b2f543cf9f0 100644 --- a/drivers/net/phy/microchip.c +++ b/drivers/net/phy/microchip.c @@ -78,9 +78,8 @@ static int lan88xx_probe(struct phy_device *phydev) priv->wolopts = 0; /* these values can be used to identify internal PHY */ - priv->chip_id = phy_read_mmd_indirect(phydev, LAN88XX_MMD3_CHIP_ID, 3); - priv->chip_rev = phy_read_mmd_indirect(phydev, LAN88XX_MMD3_CHIP_REV, - 3); + priv->chip_id = phy_read_mmd(phydev, 3, LAN88XX_MMD3_CHIP_ID); + priv->chip_rev = phy_read_mmd(phydev, 3, LAN88XX_MMD3_CHIP_REV); phydev->priv = priv; |