netdev: drivers should make ethtool_ops const
No need to put ethtool_ops in data, they should be const. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
daf09de817
commit
0fc0b732ea
@@ -762,7 +762,7 @@ static u32 ep93xx_get_link(struct net_device *dev)
|
||||
return mii_link_ok(&ep->mii);
|
||||
}
|
||||
|
||||
static struct ethtool_ops ep93xx_ethtool_ops = {
|
||||
static const struct ethtool_ops ep93xx_ethtool_ops = {
|
||||
.get_drvinfo = ep93xx_get_drvinfo,
|
||||
.get_settings = ep93xx_get_settings,
|
||||
.set_settings = ep93xx_set_settings,
|
||||
|
@@ -802,7 +802,7 @@ static int ixp4xx_nway_reset(struct net_device *dev)
|
||||
return phy_start_aneg(port->phydev);
|
||||
}
|
||||
|
||||
static struct ethtool_ops ixp4xx_ethtool_ops = {
|
||||
static const struct ethtool_ops ixp4xx_ethtool_ops = {
|
||||
.get_drvinfo = ixp4xx_get_drvinfo,
|
||||
.get_settings = ixp4xx_get_settings,
|
||||
.set_settings = ixp4xx_set_settings,
|
||||
|
@@ -1063,7 +1063,7 @@ ks8695_get_drvinfo(struct net_device *ndev, struct ethtool_drvinfo *info)
|
||||
sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
static struct ethtool_ops ks8695_ethtool_ops = {
|
||||
static const struct ethtool_ops ks8695_ethtool_ops = {
|
||||
.get_msglevel = ks8695_get_msglevel,
|
||||
.set_msglevel = ks8695_set_msglevel,
|
||||
.get_settings = ks8695_get_settings,
|
||||
|
Reference in New Issue
Block a user