Skip to content

Commit 8d9c0ed

Browse files
javiercarrascocruzbroonie
authored andcommitted
ASoC: jz4760: Constify struct regmap_config
`jz4760_codec_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 52f0aa5 commit 8d9c0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/jz4760.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ static const u8 jz4760_codec_reg_defaults[] = {
821821
0x1F, 0x00, 0x00, 0x00
822822
};
823823

824-
static struct regmap_config jz4760_codec_regmap_config = {
824+
static const struct regmap_config jz4760_codec_regmap_config = {
825825
.reg_bits = 7,
826826
.val_bits = 8,
827827

0 commit comments

Comments
 (0)