Skip to content

Commit 306e031

Browse files
javiercarrascocruzbroonie
authored andcommitted
ASoC: cs35l35: Constify struct regmap_config
`cs35l35_regmap` 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 cb14818 commit 306e031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/cs35l35.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ static const struct snd_soc_component_driver soc_component_dev_cs35l35 = {
10861086
.endianness = 1,
10871087
};
10881088

1089-
static struct regmap_config cs35l35_regmap = {
1089+
static const struct regmap_config cs35l35_regmap = {
10901090
.reg_bits = 8,
10911091
.val_bits = 8,
10921092

0 commit comments

Comments
 (0)