Skip to content

Commit

Permalink
net: dsa: make some structures const
Browse files Browse the repository at this point in the history
Make these const as they are not modified anywhere.

Signed-off-by: Bhumika Goyal <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
goyalbhumika authored and davem330 committed Aug 29, 2017
1 parent 1b70d79 commit 7e3108f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/dsa/bcm_sf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/qca8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down

0 comments on commit 7e3108f

Please sign in to comment.