aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-08 17:37:19 -0400
committerMark Brown <broonie@kernel.org>2017-06-13 16:30:12 -0400
commite8fa1a4929849b71936f30e88c0b17c3a641509d (patch)
tree111689232249ea31d3a93266a14a4f49c95cc6b8
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
ASoC: cs35l34: 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/cs35l34.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs35l34.c b/sound/soc/codecs/cs35l34.c
index 7c5d1510cf2c..0a747c66cc6c 100644
--- a/sound/soc/codecs/cs35l34.c
+++ b/sound/soc/codecs/cs35l34.c
@@ -567,12 +567,12 @@ static int cs35l34_pcm_hw_params(struct snd_pcm_substream *substream,
567 return ret; 567 return ret;
568} 568}
569 569
570static unsigned int cs35l34_src_rates[] = { 570static const unsigned int cs35l34_src_rates[] = {
571 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 571 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
572}; 572};
573 573
574 574
575static struct snd_pcm_hw_constraint_list cs35l34_constraints = { 575static const struct snd_pcm_hw_constraint_list cs35l34_constraints = {
576 .count = ARRAY_SIZE(cs35l34_src_rates), 576 .count = ARRAY_SIZE(cs35l34_src_rates),
577 .list = cs35l34_src_rates, 577 .list = cs35l34_src_rates,
578}; 578};