OSDN Git Service

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)
commita788859649b75a6e4514337a9a5d4a60fd709904
tree0b4d5d680084abe5955841a28745ee9094e7f290
parent1dae02b3719a343f060412179a048833b78680c1
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