Skip to content

Commit e15cc90

Browse files
javiercarrascocruzbroonie
authored andcommitted
ASoC: wsa884x: Constify struct regmap_config
`wsa884x_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 22c361d commit e15cc90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/wsa884x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ static bool wsa884x_volatile_register(struct device *dev, unsigned int reg)
13191319
return wsa884x_readonly_register(dev, reg);
13201320
}
13211321

1322-
static struct regmap_config wsa884x_regmap_config = {
1322+
static const struct regmap_config wsa884x_regmap_config = {
13231323
.reg_bits = 32,
13241324
.val_bits = 8,
13251325
.cache_type = REGCACHE_MAPLE,

0 commit comments

Comments
 (0)