]> git.baikalelectronics.ru Git - kernel.git/commit
net: atheros: atl2: use new api ethtool_{get|set}_link_ksettings
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 13 Nov 2016 17:53:28 +0000 (18:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2016 18:37:43 +0000 (13:37 -0500)
commit7d38491b8395c82a998301635c3ffd56b889fc77
tree0b4d5d680084abe5955841a28745ee9094e7f290
parent811b09958cd02798c25584084335e8cda8b7a11b
net: atheros: atl2: 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/atl2.c