diff options
author | Mathias Krause <minipli@googlemail.com> | 2015-06-13 08:25:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-15 06:18:55 -0400 |
commit | 8610d09a40c10dea55dada151cf85cce253f511c (patch) | |
tree | 958f87f314020cb683fa3c5a7a6a99b16a558b50 | |
parent | bb13f0e08d16a6a303aab786b2aaf2ca76747cfb (diff) |
ASoC: max98090: Constify ACPI device ids and register defaults
Constify the ACPI device ID array and the register map, no need to have
them writable at runtime.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/max98090.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 9d80c68abdd5..f7b3577ada85 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "max98090.h" | 27 | #include "max98090.h" |
28 | 28 | ||
29 | /* Allows for sparsely populated register maps */ | 29 | /* Allows for sparsely populated register maps */ |
30 | static struct reg_default max98090_reg[] = { | 30 | static const struct reg_default max98090_reg[] = { |
31 | { 0x00, 0x00 }, /* 00 Software Reset */ | 31 | { 0x00, 0x00 }, /* 00 Software Reset */ |
32 | { 0x03, 0x04 }, /* 03 Interrupt Masks */ | 32 | { 0x03, 0x04 }, /* 03 Interrupt Masks */ |
33 | { 0x04, 0x00 }, /* 04 System Clock Quick */ | 33 | { 0x04, 0x00 }, /* 04 System Clock Quick */ |
@@ -2707,7 +2707,7 @@ static const struct of_device_id max98090_of_match[] = { | |||
2707 | MODULE_DEVICE_TABLE(of, max98090_of_match); | 2707 | MODULE_DEVICE_TABLE(of, max98090_of_match); |
2708 | 2708 | ||
2709 | #ifdef CONFIG_ACPI | 2709 | #ifdef CONFIG_ACPI |
2710 | static struct acpi_device_id max98090_acpi_match[] = { | 2710 | static const struct acpi_device_id max98090_acpi_match[] = { |
2711 | { "193C9890", MAX98090 }, | 2711 | { "193C9890", MAX98090 }, |
2712 | { } | 2712 | { } |
2713 | }; | 2713 | }; |