Skip to content

Commit 52f0aa5

Browse files
javiercarrascocruzbroonie
authored andcommitted
ASoC: cs53l30: Constify struct regmap_config
`cs53l30_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 0271df0 commit 52f0aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/cs53l30.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static const struct snd_soc_component_driver cs53l30_driver = {
900900
.endianness = 1,
901901
};
902902

903-
static struct regmap_config cs53l30_regmap = {
903+
static const struct regmap_config cs53l30_regmap = {
904904
.reg_bits = 8,
905905
.val_bits = 8,
906906

0 commit comments

Comments
 (0)