net: dsa: make some structures const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 29 Aug 2017 16:47:52 +0000 (22:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 23:05:07 +0000 (16:05 -0700)
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>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/qca8k.c

index bbcb4053e04eeb0cd2f3b4e9c6bfffb6cb0275d5..8492c9d64004d1a76cc0a63fdc572b2e001d1d2d 100644 (file)
@@ -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,
index 17977f06cb986be01df4c979a6d13c79847a874a..5ada7a41449c46b2dd8161f806ef55f05cdf2fc9 100644 (file)
@@ -250,7 +250,7 @@ static const struct regmap_range qca8k_readable_ranges[] = {
 
 };
 
-static struct regmap_access_table qca8k_readable_table = {
+static const struct regmap_access_table qca8k_readable_table = {
        .yes_ranges = qca8k_readable_ranges,
        .n_yes_ranges = ARRAY_SIZE(qca8k_readable_ranges),
 };