net: make ethtool_ops const
Auditing all usage of ethtool_ops found several drivers that are not declaring the struct const when it should be. 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
c8b88efc30
commit
9b07be4b2a
@@ -1152,7 +1152,7 @@ static void fec_enet_get_drvinfo(struct net_device *ndev,
|
||||
strcpy(info->bus_info, dev_name(&ndev->dev));
|
||||
}
|
||||
|
||||
static struct ethtool_ops fec_enet_ethtool_ops = {
|
||||
static const struct ethtool_ops fec_enet_ethtool_ops = {
|
||||
.get_settings = fec_enet_get_settings,
|
||||
.set_settings = fec_enet_set_settings,
|
||||
.get_drvinfo = fec_enet_get_drvinfo,
|
||||
|
Reference in New Issue
Block a user