summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/jme.h
diff options
context:
space:
mode:
authorPhilippe Reynes <tremyfr@gmail.com>2017-01-15 23:18:21 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-17 17:44:27 +0100
commitc523838c8514e1fdccc60b0a584bae374e6c5c0f (patch)
treeba42a5518da14327da8684c5d8e1fe694bff4502 /drivers/net/ethernet/jme.h
parentnet: korina: use new api ethtool_{get|set}_link_ksettings (diff)
downloadlinux-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.h6
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);