summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bcm63xx_enet.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-30 11:25:08 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-31 00:20:01 +0200
commitdc8007e8fa88be6d92ee6e2371d16b5860496a2d (patch)
tree5e0cb9769e0ad96ca1d92358868b35785e97136d /drivers/net/ethernet/broadcom/bcm63xx_enet.c
parentipv6: sr: fix get_srh() to comply with IPv6 standard "RFC 8200" (diff)
downloadlinux-dc8007e8fa88be6d92ee6e2371d16b5860496a2d.tar.xz
linux-dc8007e8fa88be6d92ee6e2371d16b5860496a2d.zip
net: bcm63xx_enet: make bcm_enetsw_ethtool_ops const
Make this const as it is never modified. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcm63xx_enet.c')
-rw-r--r--drivers/net/ethernet/broadcom/bcm63xx_enet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index 61a88b64bd39..4f3845a58126 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -2674,7 +2674,7 @@ static int bcm_enetsw_set_ringparam(struct net_device *dev,
return 0;
}
-static struct ethtool_ops bcm_enetsw_ethtool_ops = {
+static const struct ethtool_ops bcm_enetsw_ethtool_ops = {
.get_strings = bcm_enetsw_get_strings,
.get_sset_count = bcm_enetsw_get_sset_count,
.get_ethtool_stats = bcm_enetsw_get_ethtool_stats,