net: phy: micrel: move phy reg offsets to common header
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Mon, 14 Jun 2021 04:31:18 +0000 (06:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 19:54:43 +0000 (12:54 -0700)
commitec4b94f9b37bf028cb9b9c39cd1c1cb5dd1ab40c
tree1da11280c19dc5fa62ad9f714f66c6be1e0264a0
parentffa85b73c3c4143a8e8087c0930f6c5a6ead8e9f
net: phy: micrel: move phy reg offsets to common header

Some micrel devices share the same PHY register defines. This patch
moves them to one common header so other drivers can reuse them.
And reuse generic MII_* defines where possible.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz8795.c
drivers/net/dsa/microchip/ksz8795_reg.h
drivers/net/ethernet/micrel/ksz884x.c
include/linux/micrel_phy.h