mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
42013e9038
commit
d78d6776bc
3 changed files with 3 additions and 3 deletions
|
@ -257,7 +257,7 @@ static int dsa_loop_port_vlan_del(struct dsa_switch *ds, int port,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct dsa_switch_ops dsa_loop_driver = {
|
||||
static const struct dsa_switch_ops dsa_loop_driver = {
|
||||
.get_tag_protocol = dsa_loop_get_protocol,
|
||||
.setup = dsa_loop_setup,
|
||||
.get_strings = dsa_loop_get_strings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue