Skip to content

Commit

Permalink
net: bcm63xx_enet: make bcm_enetsw_ethtool_ops const
Browse files Browse the repository at this point in the history
Make this const as it is never modified.

Signed-off-by: Bhumika Goyal <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
goyalbhumika authored and davem330 committed Aug 30, 2017
1 parent 5829d70 commit dc8007e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/bcm63xx_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dc8007e

Please sign in to comment.