Skip to content

Commit 5ffab1d

Browse files
javiercarrascocruzbroonie
authored andcommitted
ASoC: wsa881x: Constify struct regmap_config
`wsa881x_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]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 7abfa29 commit 5ffab1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/wsa881x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ static bool wsa881x_volatile_register(struct device *dev, unsigned int reg)
634634
}
635635
}
636636

637-
static struct regmap_config wsa881x_regmap_config = {
637+
static const struct regmap_config wsa881x_regmap_config = {
638638
.reg_bits = 32,
639639
.val_bits = 8,
640640
.cache_type = REGCACHE_MAPLE,

0 commit comments

Comments
 (0)