Skip to content

Commit 22c361d

Browse files
javiercarrascocruzbroonie
authored andcommitted
ASoC: wsa883x: Constify struct regmap_config
`wsa883x_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 5ffab1d commit 22c361d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/wsa883x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ static bool wsa883x_volatile_register(struct device *dev, unsigned int reg)
934934
return wsa883x_readonly_register(dev, reg);
935935
}
936936

937-
static struct regmap_config wsa883x_regmap_config = {
937+
static const struct regmap_config wsa883x_regmap_config = {
938938
.reg_bits = 32,
939939
.val_bits = 8,
940940
.cache_type = REGCACHE_MAPLE,

0 commit comments

Comments
 (0)