Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bhumika Goyal and committed by
David S. Miller
7e3108fa 1b70d792

+2 -2
+1 -1
drivers/net/dsa/bcm_sf2.c
··· 983 983 return 0; 984 984 } 985 985 986 - static struct b53_io_ops bcm_sf2_io_ops = { 986 + static const struct b53_io_ops bcm_sf2_io_ops = { 987 987 .read8 = bcm_sf2_core_read8, 988 988 .read16 = bcm_sf2_core_read16, 989 989 .read32 = bcm_sf2_core_read32,
+1 -1
drivers/net/dsa/qca8k.c
··· 250 250 251 251 }; 252 252 253 - static struct regmap_access_table qca8k_readable_table = { 253 + static const struct regmap_access_table qca8k_readable_table = { 254 254 .yes_ranges = qca8k_readable_ranges, 255 255 .n_yes_ranges = ARRAY_SIZE(qca8k_readable_ranges), 256 256 };