summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-01-04 13:59:49 +0100
committerDavid S. Miller <davem@davemloft.net>2012-01-05 19:23:00 +0100
commit9b07be4b2a78166bc54c8eedf18da8a8aafacfab (patch)
tree6a1e70a5777befcd2ed840f0a8d24f6477309987 /drivers/net/ethernet/chelsio/cxgb4
parentvmxnet3" make ethtool ops const (diff)
downloadlinux-9b07be4b2a78166bc54c8eedf18da8a8aafacfab.tar.xz
linux-9b07be4b2a78166bc54c8eedf18da8a8aafacfab.zip
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>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 7b6b43d576d1..e83d12c7bf20 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -1963,7 +1963,7 @@ static int get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info,
return -EOPNOTSUPP;
}
-static struct ethtool_ops cxgb_ethtool_ops = {
+static const struct ethtool_ops cxgb_ethtool_ops = {
.get_settings = get_settings,
.set_settings = set_settings,
.get_drvinfo = get_drvinfo,