]> git.baikalelectronics.ru Git - kernel.git/commit
net: atheros: atl1: use new api ethtool_{get|set}_link_ksettings
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 13 Nov 2016 17:35:14 +0000 (18:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2016 18:37:42 +0000 (13:37 -0500)
commit811b09958cd02798c25584084335e8cda8b7a11b
tree2220aa642d7e68a0db071157163f11ff130562ff
parentc90e9f5065cae659989cc1bfb2de55951a6d932b
net: atheros: atl1: use new api ethtool_{get|set}_link_ksettings

The ethtool api {get|set}_settings is deprecated.
We move this driver to new api {get|set}_link_ksettings.

The previous implementation of set_settings was modifying
the value of advertising, but with the new API, it's not
possible. The structure ethtool_link_ksettings is defined
as const.

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