summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/bcm_sf2.c
diff options
context:
space:
mode:
authorBhumika Goyal2017-08-29 18:47:52 +0200
committerDavid S. Miller2017-08-30 01:05:07 +0200
commit7e3108fab50a292e95ac8821da8b7d34b2fbb809 (patch)
tree165cbfcd66a244a22bbc2b2af4862f6c86b39dfe /drivers/net/dsa/bcm_sf2.c
parentipv6: Use rt6i_idev index for echo replies to a local address (diff)
downloadkernel-qcow2-linux-7e3108fab50a292e95ac8821da8b7d34b2fbb809.tar.gz
kernel-qcow2-linux-7e3108fab50a292e95ac8821da8b7d34b2fbb809.tar.xz
kernel-qcow2-linux-7e3108fab50a292e95ac8821da8b7d34b2fbb809.zip
net: dsa: make some structures const
Make these const as they are not modified anywhere. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.c')
-rw-r--r--drivers/net/dsa/bcm_sf2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c
index bbcb4053e04e..8492c9d64004 100644
--- a/drivers/net/dsa/bcm_sf2.c
+++ b/drivers/net/dsa/bcm_sf2.c
@@ -983,7 +983,7 @@ static int bcm_sf2_core_write64(struct b53_device *dev, u8 page, u8 reg,
return 0;
}
-static struct b53_io_ops bcm_sf2_io_ops = {
+static const struct b53_io_ops bcm_sf2_io_ops = {
.read8 = bcm_sf2_core_read8,
.read16 = bcm_sf2_core_read16,
.read32 = bcm_sf2_core_read32,