]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: move ethtool func in separate file
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 26 Apr 2019 17:12:42 +0000 (20:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2019 21:11:49 +0000 (17:11 -0400)
commitf7cda32c0c6f54de3ec31f6776a9e59dc546a13b
tree100379af99b8022d686f4be0d37d4830968b2a30
parent6a907bc159164be00760436729aec0090c801d24
net: ethernet: ti: cpsw: move ethtool func in separate file

As a preparatory patch to add support for a switchdev based cpsw driver,
move common ethtool functions to separate cpsw-ethtool.c file so that they
can be used across both drivers. It will simplify CPSW driver code
maintenance also.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/Makefile
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw_ethtool.c [new file with mode: 0644]
drivers/net/ethernet/ti/cpsw_priv.h