From: Bhumika Goyal Date: Wed, 30 Aug 2017 09:25:08 +0000 (+0530) Subject: net: bcm63xx_enet: make bcm_enetsw_ethtool_ops const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc8007e8fa88be6d92ee6e2371d16b5860496a2d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: bcm63xx_enet: make bcm_enetsw_ethtool_ops const Make this const as it is never modified. Signed-off-by: Bhumika Goyal Signed-off-by: David S. Miller --- 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,