net: stmmac: unify mdio functions
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Thu, 1 Dec 2016 15:19:41 +0000 (16:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Dec 2016 20:23:51 +0000 (15:23 -0500)
commitb91dce4c5bc9b4454e25695c0dae5355df79a4e9
tree3496fa72b3568a5182565c972f407cdb920c921c
parent01f1f615bdc5a887d39e158129e0851956fb6e05
net: stmmac: unify mdio functions

stmmac_mdio_{read|write} and stmmac_mdio_{read|write}_gmac4 are not
enought different for being split.
The only differences between thoses two functions are shift/mask for
addr/reg/clk_csr.

This patch introduce a per platform set of variable for setting thoses
shift/mask and unify mdio read and write functions.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c