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
@@ -1174,7 +1174,7 @@ static void pegasus_set_msglevel(struct net_device *dev, u32 v)
|
||||
pegasus->msg_enable = v;
|
||||
}
|
||||
|
||||
static struct ethtool_ops ops = {
|
||||
static const struct ethtool_ops ops = {
|
||||
.get_drvinfo = pegasus_get_drvinfo,
|
||||
.get_settings = pegasus_get_settings,
|
||||
.set_settings = pegasus_set_settings,
|
||||
|
Reference in New Issue
Block a user