aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-01-04 08:02:23 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-05 13:23:00 -0500
commit975419cf01fc6997879196d1c8f5ebffd30d3b20 (patch)
tree724501b59a5b6368d5f34d9673fa415fbb6bce08
parentbd601cc464e1ddc041d07ba2e4c015cdb9e392ec (diff)
bna: make ethtool_ops and strings const
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad_ethtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c
index 5f7be5ac32a1..9b44ec8096ba 100644
--- a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c
+++ b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c
@@ -38,7 +38,7 @@
38 sizeof(struct bnad_drv_stats) / sizeof(u64) + \ 38 sizeof(struct bnad_drv_stats) / sizeof(u64) + \
39 offsetof(struct bfi_enet_stats, rxf_stats[0]) / sizeof(u64)) 39 offsetof(struct bfi_enet_stats, rxf_stats[0]) / sizeof(u64))
40 40
41static char *bnad_net_stats_strings[BNAD_ETHTOOL_STATS_NUM] = { 41static const char *bnad_net_stats_strings[BNAD_ETHTOOL_STATS_NUM] = {
42 "rx_packets", 42 "rx_packets",
43 "tx_packets", 43 "tx_packets",
44 "rx_bytes", 44 "rx_bytes",
@@ -1072,7 +1072,7 @@ done:
1072 return ret; 1072 return ret;
1073} 1073}
1074 1074
1075static struct ethtool_ops bnad_ethtool_ops = { 1075static const struct ethtool_ops bnad_ethtool_ops = {
1076 .get_settings = bnad_get_settings, 1076 .get_settings = bnad_get_settings,
1077 .set_settings = bnad_set_settings, 1077 .set_settings = bnad_set_settings,
1078 .get_drvinfo = bnad_get_drvinfo, 1078 .get_drvinfo = bnad_get_drvinfo,