diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-02-19 21:56:58 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-20 13:08:50 -0500 |
commit | e354d86e551656668e879c833de9890b5053cc88 (patch) | |
tree | bdf605959c72eff8c1e2b6663d783ca736e28a0c | |
parent | cffee535f0b09ab0801cbec01a8ae81595aa99bc (diff) |
ASoC: max98926: Constify max98926_reg and max98926_regmap
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: anish kumar <yesanishhere@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/max98926.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/max98926.c b/sound/soc/codecs/max98926.c index 5245e107de30..8d14adae5cc5 100644 --- a/sound/soc/codecs/max98926.c +++ b/sound/soc/codecs/max98926.c | |||
@@ -40,7 +40,7 @@ static const char *const max98926_hpf_cutoff_txt[] = { | |||
40 | "200Hz", "400Hz", "800Hz", | 40 | "200Hz", "400Hz", "800Hz", |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static struct reg_default max98926_reg[] = { | 43 | static const struct reg_default max98926_reg[] = { |
44 | { 0x0B, 0x00 }, /* IRQ Enable0 */ | 44 | { 0x0B, 0x00 }, /* IRQ Enable0 */ |
45 | { 0x0C, 0x00 }, /* IRQ Enable1 */ | 45 | { 0x0C, 0x00 }, /* IRQ Enable1 */ |
46 | { 0x0D, 0x00 }, /* IRQ Enable2 */ | 46 | { 0x0D, 0x00 }, /* IRQ Enable2 */ |
@@ -506,7 +506,7 @@ static struct snd_soc_codec_driver soc_codec_dev_max98926 = { | |||
506 | .num_dapm_widgets = ARRAY_SIZE(max98926_dapm_widgets), | 506 | .num_dapm_widgets = ARRAY_SIZE(max98926_dapm_widgets), |
507 | }; | 507 | }; |
508 | 508 | ||
509 | static struct regmap_config max98926_regmap = { | 509 | static const struct regmap_config max98926_regmap = { |
510 | .reg_bits = 8, | 510 | .reg_bits = 8, |
511 | .val_bits = 8, | 511 | .val_bits = 8, |
512 | .max_register = MAX98926_VERSION, | 512 | .max_register = MAX98926_VERSION, |