]> git.karo-electronics.de Git - linux-beck.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)
commit1dae02b3719a343f060412179a048833b78680c1
tree2220aa642d7e68a0db071157163f11ff130562ff
parent58046c7043d0a9ca66ae77edd20397643d449cac
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