diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-08 17:37:20 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-13 16:31:17 -0400 |
commit | 92f468d2c587e3cea32032df064d06c96637f295 (patch) | |
tree | 275781da26a78dfb78c9dc7fa4eb7075399ebde9 | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) |
ASoC: cs53l30: Constify hw_constraints
snd_pcm_hw_constraint_list(), *_ratnums() and *_ratdens() receive the
const pointers. Constify the corresponding static objects for better
hardening.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/cs53l30.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c index 1e0d5973b758..06933a5d0a75 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c | |||
@@ -747,7 +747,7 @@ static unsigned int const cs53l30_src_rates[] = { | |||
747 | 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 | 747 | 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 |
748 | }; | 748 | }; |
749 | 749 | ||
750 | static struct snd_pcm_hw_constraint_list src_constraints = { | 750 | static const struct snd_pcm_hw_constraint_list src_constraints = { |
751 | .count = ARRAY_SIZE(cs53l30_src_rates), | 751 | .count = ARRAY_SIZE(cs53l30_src_rates), |
752 | .list = cs53l30_src_rates, | 752 | .list = cs53l30_src_rates, |
753 | }; | 753 | }; |