priv->ports[port].enable = false;
}
-static int rtl83xx_set_mac_eee(struct dsa_switch *ds, int port,
- struct ethtool_eee *e)
+static int rtl83xx_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)
{
struct rtl838x_switch_priv *priv = ds->priv;
return 0;
}
-static int rtl83xx_get_mac_eee(struct dsa_switch *ds, int port,
- struct ethtool_eee *e)
+static int rtl83xx_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)
{
struct rtl838x_switch_priv *priv = ds->priv;
return 0;
}
-static int rtl93xx_get_mac_eee(struct dsa_switch *ds, int port,
- struct ethtool_eee *e)
+static int rtl93xx_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)
{
struct rtl838x_switch_priv *priv = ds->priv;
return ret;
}
-static int rtl8226_get_eee(struct phy_device *phydev,
- struct ethtool_eee *e)
+static int rtl8226_get_eee(struct phy_device *phydev, struct ethtool_keee *e)
{
u32 val;
int addr = phydev->mdio.addr;
return 0;
}
-static int rtl8226_set_eee(struct phy_device *phydev, struct ethtool_eee *e)
+static int rtl8226_set_eee(struct phy_device *phydev, struct ethtool_keee *e)
{
int port = phydev->mdio.addr;
u64 poll_state;
phy_write_paged(phydev, RTL821X_PAGE_GPHY, RTL821XEXT_MEDIA_PAGE_SELECT, RTL821X_MEDIA_PAGE_AUTO);
}
-static int rtl8218b_get_eee(struct phy_device *phydev,
- struct ethtool_eee *e)
+static int rtl8218b_get_eee(struct phy_device *phydev, struct ethtool_keee *e)
{
u32 val;
int addr = phydev->mdio.addr;
return 0;
}
-static int rtl8218d_get_eee(struct phy_device *phydev,
- struct ethtool_eee *e)
+static int rtl8218d_get_eee(struct phy_device *phydev, struct ethtool_keee *e)
{
u32 val;
int addr = phydev->mdio.addr;
return 0;
}
-static int rtl8214fc_set_eee(struct phy_device *phydev,
- struct ethtool_eee *e)
+static int rtl8214fc_set_eee(struct phy_device *phydev, struct ethtool_keee *e)
{
u32 poll_state;
int port = phydev->mdio.addr;
return 0;
}
-static int rtl8214fc_get_eee(struct phy_device *phydev,
- struct ethtool_eee *e)
+static int rtl8214fc_get_eee(struct phy_device *phydev, struct ethtool_keee *e)
{
int addr = phydev->mdio.addr;
return rtl8218b_get_eee(phydev, e);
}
-static int rtl8218b_set_eee(struct phy_device *phydev, struct ethtool_eee *e)
+static int rtl8218b_set_eee(struct phy_device *phydev, struct ethtool_keee *e)
{
int port = phydev->mdio.addr;
u64 poll_state;
return 0;
}
-static int rtl8218d_set_eee(struct phy_device *phydev, struct ethtool_eee *e)
+static int rtl8218d_set_eee(struct phy_device *phydev, struct ethtool_keee *e)
{
int addr = phydev->mdio.addr;
u64 poll_state;
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
-@@ -1181,6 +1181,8 @@ struct phy_driver {
+@@ -1229,6 +1229,8 @@ struct phy_driver {
*/
int (*led_polarity_set)(struct phy_device *dev, int index,
unsigned long modes);
-+ int (*get_eee)(struct phy_device *dev, struct ethtool_eee *e);
-+ int (*set_eee)(struct phy_device *dev, struct ethtool_eee *e);
++ int (*get_eee)(struct phy_device *dev, struct ethtool_keee *e);
++ int (*set_eee)(struct phy_device *dev, struct ethtool_keee *e);
};
- #define to_phy_driver(d) container_of(to_mdio_common_driver(d), \
+ #define to_phy_driver(d) container_of_const(to_mdio_common_driver(d), \
struct phy_driver, mdiodrv)