phy: add generic function to support ksetting support
authorPhilippe Reynes <tremyfr@gmail.com>
Thu, 14 Apr 2016 22:35:00 +0000 (00:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2016 18:45:08 +0000 (14:45 -0400)
commit2d55173e71b06c5a369489852d972304e14189fd
treec02c71e55e4d63e9fb54c5cc6bcb721689435132
parent6d62b4d5fac620ee0ca65dc6d99b0306d96bc541
phy: add generic function to support ksetting support

The old ethtool api (get_setting and set_setting) has
generic phy functions phy_ethtool_sset and phy_ethtool_gset.
To supprt the new ethtool api (get_link_ksettings and
set_link_ksettings), we add generic phy function
phy_ethtool_ksettings_get and phy_ethtool_ksettings_set.

Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
include/linux/phy.h