sh_eth: factor out common code from MDIO bitbang methods
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 7 Dec 2015 21:40:57 +0000 (00:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2015 02:55:05 +0000 (21:55 -0500)
commit39b4b06b8b20ae011373bae5f9552cce17c47f64
tree9d70e499e0295581b0b0ad09ea18028394dc859b
parent3242e2b46d297e48846022694502d9023c22f6c1
sh_eth: factor out common code from MDIO bitbang methods

sh_mm[cd]_ctrl()  and sh_set_mdio() all look mostly the same -- factor out
their common code and put it into sh_mdio_ctrl().

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c