net: phy: Delete unused function phy_ethtool_gset
authoryuval.shaia@oracle.com <yuval.shaia@oracle.com>
Mon, 5 Jun 2017 07:18:40 +0000 (10:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 19:12:28 +0000 (15:12 -0400)
It's unused, so remove it.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/phy.txt
drivers/net/phy/phy.c
include/linux/phy.h

index 16f90d8172245018429b16302036dd29eeaf30cf..bdec0f700bc17a89e6cfd538e27783998d985c09 100644 (file)
@@ -295,7 +295,6 @@ Doing it all yourself
    settings in the PHY.
 
  int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
- int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd);
 
    Ethtool convenience functions.
 
index 82ab8fb82587553fefc1d05bbff06d4a76bc9679..40f4c6a2ef6cdf10d4789a8ce4d67340908e11d4 100644 (file)
@@ -484,30 +484,6 @@ int phy_ethtool_ksettings_set(struct phy_device *phydev,
 }
 EXPORT_SYMBOL(phy_ethtool_ksettings_set);
 
-int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd)
-{
-       cmd->supported = phydev->supported;
-
-       cmd->advertising = phydev->advertising;
-       cmd->lp_advertising = phydev->lp_advertising;
-
-       ethtool_cmd_speed_set(cmd, phydev->speed);
-       cmd->duplex = phydev->duplex;
-       if (phydev->interface == PHY_INTERFACE_MODE_MOCA)
-               cmd->port = PORT_BNC;
-       else
-               cmd->port = PORT_MII;
-       cmd->phy_address = phydev->mdio.addr;
-       cmd->transceiver = phy_is_internal(phydev) ?
-               XCVR_INTERNAL : XCVR_EXTERNAL;
-       cmd->autoneg = phydev->autoneg;
-       cmd->eth_tp_mdix_ctrl = phydev->mdix_ctrl;
-       cmd->eth_tp_mdix = phydev->mdix;
-
-       return 0;
-}
-EXPORT_SYMBOL(phy_ethtool_gset);
-
 int phy_ethtool_ksettings_get(struct phy_device *phydev,
                              struct ethtool_link_ksettings *cmd)
 {
index 58f1b45a4c449f36969e6310b1c0cc4b10765da5..748e526c06989f208e15c89cdd8451b27d59750b 100644 (file)
@@ -854,7 +854,6 @@ void phy_start_machine(struct phy_device *phydev);
 void phy_stop_machine(struct phy_device *phydev);
 void phy_trigger_machine(struct phy_device *phydev, bool sync);
 int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
-int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd);
 int phy_ethtool_ksettings_get(struct phy_device *phydev,
                              struct ethtool_link_ksettings *cmd);
 int phy_ethtool_ksettings_set(struct phy_device *phydev,