mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
bna: make ethtool_ops and strings const
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bd601cc464
commit
975419cf01
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
||||||
sizeof(struct bnad_drv_stats) / sizeof(u64) + \
|
sizeof(struct bnad_drv_stats) / sizeof(u64) + \
|
||||||
offsetof(struct bfi_enet_stats, rxf_stats[0]) / sizeof(u64))
|
offsetof(struct bfi_enet_stats, rxf_stats[0]) / sizeof(u64))
|
||||||
|
|
||||||
static char *bnad_net_stats_strings[BNAD_ETHTOOL_STATS_NUM] = {
|
static const char *bnad_net_stats_strings[BNAD_ETHTOOL_STATS_NUM] = {
|
||||||
"rx_packets",
|
"rx_packets",
|
||||||
"tx_packets",
|
"tx_packets",
|
||||||
"rx_bytes",
|
"rx_bytes",
|
||||||
|
@ -1072,7 +1072,7 @@ bnad_set_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ethtool_ops bnad_ethtool_ops = {
|
static const struct ethtool_ops bnad_ethtool_ops = {
|
||||||
.get_settings = bnad_get_settings,
|
.get_settings = bnad_get_settings,
|
||||||
.set_settings = bnad_set_settings,
|
.set_settings = bnad_set_settings,
|
||||||
.get_drvinfo = bnad_get_drvinfo,
|
.get_drvinfo = bnad_get_drvinfo,
|
||||||
|
|
Loading…
Reference in a new issue