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

From: David Miller
Date: Fri Jul 15 2016 - 19:44:38 EST


From: Philippe Reynes <tremyfr@xxxxxxxxx>
Date: Fri, 15 Jul 2016 12:39:02 +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 cpmac_set_settings, 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>

Applied.