aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-09 01:04:15 -0400
committerDavid S. Miller <davem@davemloft.net>2017-08-10 01:42:49 -0400
commitd78d6776bc958b16b9a8883278f36d62e3145409 (patch)
tree2dcf297aeb733d53708b926d346b05a683591aa3 /drivers/net/dsa/dsa_loop.c
parent42013e9038225aeaed98abf7ac4973c2a6f4ffc6 (diff)
net: dsa: make dsa_switch_ops const
Make these structures const as they are only stored in the ops field of a dsa_switch structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
-rw-r--r--drivers/net/dsa/dsa_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/dsa_loop.c b/drivers/net/dsa/dsa_loop.c
index 76d66604a34e..7819a9fe8321 100644
--- a/drivers/net/dsa/dsa_loop.c
+++ b/drivers/net/dsa/dsa_loop.c
@@ -257,7 +257,7 @@ static int dsa_loop_port_vlan_del(struct dsa_switch *ds, int port,
257 return 0; 257 return 0;
258} 258}
259 259
260static struct dsa_switch_ops dsa_loop_driver = { 260static const struct dsa_switch_ops dsa_loop_driver = {
261 .get_tag_protocol = dsa_loop_get_protocol, 261 .get_tag_protocol = dsa_loop_get_protocol,
262 .setup = dsa_loop_setup, 262 .setup = dsa_loop_setup,
263 .get_strings = dsa_loop_get_strings, 263 .get_strings = dsa_loop_get_strings,