diff options
author | Philippe Reynes <tremyfr@gmail.com> | 2017-01-15 23:18:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-17 17:44:27 +0100 |
commit | c523838c8514e1fdccc60b0a584bae374e6c5c0f (patch) | |
tree | ba42a5518da14327da8684c5d8e1fe694bff4502 /drivers/net/ethernet/jme.h | |
parent | net: korina: use new api ethtool_{get|set}_link_ksettings (diff) | |
download | linux-c523838c8514e1fdccc60b0a584bae374e6c5c0f.tar.xz linux-c523838c8514e1fdccc60b0a584bae374e6c5c0f.zip |
net: jme: 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.
As I don't have the hardware, I'd be very pleased if
someone may test this patch.
Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/jme.h')
-rw-r--r-- | drivers/net/ethernet/jme.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/jme.h b/drivers/net/ethernet/jme.h index 58cd67c0c8e4..89535c019f04 100644 --- a/drivers/net/ethernet/jme.h +++ b/drivers/net/ethernet/jme.h @@ -447,7 +447,7 @@ struct jme_adapter { u8 chip_sub_rev; u8 pcirev; u32 msg_enable; - struct ethtool_cmd old_ecmd; + struct ethtool_link_ksettings old_cmd; unsigned int old_mtu; struct dynpcc_info dpi; atomic_t intr_sem; @@ -1270,8 +1270,8 @@ static inline int new_phy_power_ctrl(u8 chip_main_rev) /* * Function prototypes */ -static int jme_set_settings(struct net_device *netdev, - struct ethtool_cmd *ecmd); +static int jme_set_link_ksettings(struct net_device *netdev, + const struct ethtool_link_ksettings *cmd); static void jme_set_unicastaddr(struct net_device *netdev); static void jme_set_multi(struct net_device *netdev); |