net: dsa: rename switch EEE ops
To avoid confusion with the PHY EEE settings, rename the .set_eee and .get_eee ops to respectively .set_mac_eee and .get_mac_eee. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5480db6985
commit
08f500610f
@@ -652,10 +652,10 @@ static int dsa_slave_set_eee(struct net_device *dev, struct ethtool_eee *e)
|
||||
if (!p->phy)
|
||||
return -ENODEV;
|
||||
|
||||
if (!ds->ops->set_eee)
|
||||
if (!ds->ops->set_mac_eee)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
ret = ds->ops->set_eee(ds, p->dp->index, e);
|
||||
ret = ds->ops->set_mac_eee(ds, p->dp->index, e);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@@ -678,10 +678,10 @@ static int dsa_slave_get_eee(struct net_device *dev, struct ethtool_eee *e)
|
||||
if (!p->phy)
|
||||
return -ENODEV;
|
||||
|
||||
if (!ds->ops->get_eee)
|
||||
if (!ds->ops->get_mac_eee)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
ret = ds->ops->get_eee(ds, p->dp->index, e);
|
||||
ret = ds->ops->get_mac_eee(ds, p->dp->index, e);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
Reference in New Issue
Block a user