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:
parent
daf09de817
commit
0fc0b732ea
50 changed files with 54 additions and 54 deletions
|
@ -798,7 +798,7 @@ static void virtnet_vlan_rx_kill_vid(struct net_device *dev, u16 vid)
|
|||
dev_warn(&dev->dev, "Failed to kill VLAN ID %d.\n", vid);
|
||||
}
|
||||
|
||||
static struct ethtool_ops virtnet_ethtool_ops = {
|
||||
static const struct ethtool_ops virtnet_ethtool_ops = {
|
||||
.set_tx_csum = virtnet_set_tx_csum,
|
||||
.set_sg = ethtool_op_set_sg,
|
||||
.set_tso = ethtool_op_set_tso,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue