Re: [PATCH 2/2] net: ethernet: adi: bfin_mac: use phy_ethtool_{get|set}_link_ksettings

From: David Miller
Date: Mon Jul 18 2016 - 02:23:14 EST

From: Philippe Reynes <tremyfr@xxxxxxxxx>
Date: Sun, 17 Jul 2016 01:10:15 +0200

> 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@xxxxxxxxx>