Skip to content

Commit 7abfa29

Browse files
javiercarrascocruzbroonie
authored andcommitted
ASoC: jz4770: 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 8d9c0ed commit 7abfa29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/jz4770.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ static const u8 jz4770_codec_reg_defaults[] = {
872872
0x07, 0x44, 0x1F, 0x00
873873
};
874874

875-
static struct regmap_config jz4770_codec_regmap_config = {
875+
static const struct regmap_config jz4770_codec_regmap_config = {
876876
.reg_bits = 7,
877877
.val_bits = 8,
878878

0 commit comments

Comments
 (0)