aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/renesas/sh_eth.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-01-04 07:59:49 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-05 13:23:00 -0500
commit9b07be4b2a78166bc54c8eedf18da8a8aafacfab (patch)
tree6a1e70a5777befcd2ed840f0a8d24f6477309987 /drivers/net/ethernet/renesas/sh_eth.c
parentc8b88efc3047063f98eba26d8d08d9a6b968c73a (diff)
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/renesas/sh_eth.c')
-rw-r--r--drivers/net/ethernet/renesas/sh_eth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
index ebfb682dfe55..fc9bda9bc36c 100644
--- a/drivers/net/ethernet/renesas/sh_eth.c
+++ b/drivers/net/ethernet/renesas/sh_eth.c
@@ -1369,13 +1369,13 @@ static void sh_eth_get_strings(struct net_device *ndev, u32 stringset, u8 *data)
1369 } 1369 }
1370} 1370}
1371 1371
1372static struct ethtool_ops sh_eth_ethtool_ops = { 1372static const struct ethtool_ops sh_eth_ethtool_ops = {
1373 .get_settings = sh_eth_get_settings, 1373 .get_settings = sh_eth_get_settings,
1374 .set_settings = sh_eth_set_settings, 1374 .set_settings = sh_eth_set_settings,
1375 .nway_reset = sh_eth_nway_reset, 1375 .nway_reset = sh_eth_nway_reset,
1376 .get_msglevel = sh_eth_get_msglevel, 1376 .get_msglevel = sh_eth_get_msglevel,
1377 .set_msglevel = sh_eth_set_msglevel, 1377 .set_msglevel = sh_eth_set_msglevel,
1378 .get_link = ethtool_op_get_link, 1378 .get_link = ethtool_op_get_link,
1379 .get_strings = sh_eth_get_strings, 1379 .get_strings = sh_eth_get_strings,
1380 .get_ethtool_stats = sh_eth_get_ethtool_stats, 1380 .get_ethtool_stats = sh_eth_get_ethtool_stats,
1381 .get_sset_count = sh_eth_get_sset_count, 1381 .get_sset_count = sh_eth_get_sset_count,