diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-09 10:34:15 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-09 22:42:49 -0700 |
commit | d78d6776bc958b16b9a8883278f36d62e3145409 (patch) | |
tree | 2dcf297aeb733d53708b926d346b05a683591aa3 /drivers/net/dsa/mt7530.c | |
parent | 42013e9038225aeaed98abf7ac4973c2a6f4ffc6 (diff) | |
download | linux-d78d6776bc958b16b9a8883278f36d62e3145409.tar.bz2 |
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/mt7530.c')
-rw-r--r-- | drivers/net/dsa/mt7530.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 8faa796a115f..c142b97add2c 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -1017,7 +1017,7 @@ mt7530_setup(struct dsa_switch *ds) return 0; } -static struct dsa_switch_ops mt7530_switch_ops = { +static const struct dsa_switch_ops mt7530_switch_ops = { .get_tag_protocol = mtk_get_tag_protocol, .setup = mt7530_setup, .get_strings = mt7530_get_strings, |