Skip to content

Commit 8dfbb06

Browse files
javiercarrascocruzkuba-moo
authored andcommitted
net: dsa: qca8k: constify struct regmap_config
`qca8k_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fecef4c commit 8dfbb06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/qca/qca8k-8xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ qca8k_regmap_update_bits(void *ctx, uint32_t reg, uint32_t mask, uint32_t write_
565565
return qca8k_regmap_update_bits_mii(priv, reg, mask, write_val);
566566
}
567567

568-
static struct regmap_config qca8k_regmap_config = {
568+
static const struct regmap_config qca8k_regmap_config = {
569569
.reg_bits = 16,
570570
.val_bits = 32,
571571
.reg_stride = 4,

0 commit comments

Comments
 (0)