projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5829d70
)
net: bcm63xx_enet: make bcm_enetsw_ethtool_ops const
author
Bhumika Goyal
<bhumirks@gmail.com>
Wed, 30 Aug 2017 09:25:08 +0000
(14:55 +0530)
committer
David S. Miller
<davem@davemloft.net>
Wed, 30 Aug 2017 22:20:01 +0000
(15:20 -0700)
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>
drivers/net/ethernet/broadcom/bcm63xx_enet.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index 61a88b64bd39fe5458b8d0c0412b0b89a7269768..4f3845a581269e84738ed4f2f487d1dd755efc2b 100644
(file)
--- 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,