]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
net: ethernet: adi: bfin_mac: use phy_ethtool_{get|set}_link_ksettings
authorPhilippe Reynes <tremyfr@gmail.com>
Sat, 16 Jul 2016 23:10:15 +0000 (01:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2016 06:22:02 +0000 (23:22 -0700)
commitfe7c11b2cf41e2dfee30a46fcc027c0e84d0f3cb
tree7b1050245cef1c154d4518770eee1a2ce4db366e
parentec87485dbecd95af06ca8b681681c433679db974
net: ethernet: adi: bfin_mac: use phy_ethtool_{get|set}_link_ksettings

There are two generics functions phy_ethtool_{get|set}_link_ksettings,
so we can use them instead of defining the same code in the driver.

There was a check on CAP_NET_ADMIN in bfin_mac_ethtool_setsettings,
but this check is already done in dev_ethtool, so no need to repeat
it before calling the generic function.

Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/adi/bfin_mac.c