]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: make dsa_switch_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 9 Aug 2017 05:04:15 +0000 (10:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:42:49 +0000 (22:42 -0700)
commitd78d6776bc958b16b9a8883278f36d62e3145409
tree2dcf297aeb733d53708b926d346b05a683591aa3
parent42013e9038225aeaed98abf7ac4973c2a6f4ffc6
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>
drivers/net/dsa/dsa_loop.c
drivers/net/dsa/lan9303-core.c
drivers/net/dsa/mt7530.c