Commit e8fa1a49 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

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: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2ea659a9
...@@ -567,12 +567,12 @@ static int cs35l34_pcm_hw_params(struct snd_pcm_substream *substream, ...@@ -567,12 +567,12 @@ static int cs35l34_pcm_hw_params(struct snd_pcm_substream *substream,
return ret; return ret;
} }
static unsigned int cs35l34_src_rates[] = { static const unsigned int cs35l34_src_rates[] = {
8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
}; };
static struct snd_pcm_hw_constraint_list cs35l34_constraints = { static const struct snd_pcm_hw_constraint_list cs35l34_constraints = {
.count = ARRAY_SIZE(cs35l34_src_rates), .count = ARRAY_SIZE(cs35l34_src_rates),
.list = cs35l34_src_rates, .list = cs35l34_src_rates,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment