net: phy: micrel: use phy_read_mmd and phy_write_mmd
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 16 Jan 2019 20:52:22 +0000 (21:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 23:10:00 +0000 (15:10 -0800)
commit9b420eff9fcf69a85034c1e657a861de575c96e1
treeb2babf75174805dd9c96b99ce170a35aae6731b8
parent43deda5408f913604bbca8c197f2cb25f22c4030
net: phy: micrel: use phy_read_mmd and phy_write_mmd

This driver implements open-coded versions of phy_read_mmd() and
phy_write_mmd() for KSZ9031. That's not needed, let's use the
phylib functions directly.

This is compile-tested only because I have no such hardware.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c