net: dsa: make some structures const
PATCH 1/1 net: dsa: make some structures const
Make these const as they are not modified anywhere.
Signed-off-by Bhumika Goyal <[email protected]>
--- drivers/net/dsa/bcm_sf2.c | 2 +- drivers/net/dsa/qca8k.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/dsa/bcm_sf2.c +1 -1
@@ -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,
drivers/net/dsa/qca8k.c +1 -1
@@ -250,7 +250,7 @@ }; -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), };
Signature · 1 line
1.9.1
From: Bhumika Goyal <[email protected]>
Date: Tue, 29 Aug 2017 22:17:52 +0530
Quoted 3 lines
Make these const as they are not modified anywhere.
Signed-off-by Bhumika Goyal <[email protected]>
Applied.