Skip to content

Commit 0271df0

Browse files
javiercarrascocruzbroonie
authored andcommitted
ASoC: cs35l36: Constify struct regmap_config
`cs35l36_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 306e031 commit 0271df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/cs35l36.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ static const struct snd_soc_component_driver soc_component_dev_cs35l36 = {
13001300
.endianness = 1,
13011301
};
13021302

1303-
static struct regmap_config cs35l36_regmap = {
1303+
static const struct regmap_config cs35l36_regmap = {
13041304
.reg_bits = 32,
13051305
.val_bits = 32,
13061306
.reg_stride = 4,

0 commit comments

Comments
 (0)