Commit 7e3108fa authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David S. Miller

net: dsa: make some structures const

Make these const as they are not modified anywhere.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b70d792
...@@ -983,7 +983,7 @@ static int bcm_sf2_core_write64(struct b53_device *dev, u8 page, u8 reg, ...@@ -983,7 +983,7 @@ static int bcm_sf2_core_write64(struct b53_device *dev, u8 page, u8 reg,
return 0; 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, .read8 = bcm_sf2_core_read8,
.read16 = bcm_sf2_core_read16, .read16 = bcm_sf2_core_read16,
.read32 = bcm_sf2_core_read32, .read32 = bcm_sf2_core_read32,
......
...@@ -250,7 +250,7 @@ static const struct regmap_range qca8k_readable_ranges[] = { ...@@ -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, .yes_ranges = qca8k_readable_ranges,
.n_yes_ranges = ARRAY_SIZE(qca8k_readable_ranges), .n_yes_ranges = ARRAY_SIZE(qca8k_readable_ranges),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment