]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: cs53l30: Constify hw_constraints
authorTakashi Iwai <tiwai@suse.de>
Thu, 8 Jun 2017 21:37:20 +0000 (23:37 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 13 Jun 2017 20:31:17 +0000 (21:31 +0100)
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>
sound/soc/codecs/cs53l30.c

index 1e0d5973b758e7563ec8e356d025c1b48f2a505e..06933a5d0a75154fef952515b71bdda2a99050d9 100644 (file)
@@ -747,7 +747,7 @@ static unsigned int const cs53l30_src_rates[] = {
        8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
 };
 
-static struct snd_pcm_hw_constraint_list src_constraints = {
+static const struct snd_pcm_hw_constraint_list src_constraints = {
        .count = ARRAY_SIZE(cs53l30_src_rates),
        .list = cs53l30_src_rates,
 };