net: mscc: ocelot: refactor ethtool callbacks
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 9 Nov 2019 13:02:54 +0000 (15:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Nov 2019 20:59:10 +0000 (12:59 -0800)
commitc7282d387695e711b5edc08aa4111b3a4a8a4c23
tree6277c41204d7ce37854d3cd77076b5954af3a016
parent004d44f6e5a80429424632467cabba34ccdb79f3
net: mscc: ocelot: refactor ethtool callbacks

Convert them into an implementation that can be called from DSA as well.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c