Browse Source

ASoC: samsung: 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>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Takashi Iwai 8 years ago
parent
commit
0994c03044
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sound/soc/samsung/s3c24xx_uda134x.c

+ 1 - 1
sound/soc/samsung/s3c24xx_uda134x.c

@@ -44,7 +44,7 @@ struct s3c24xx_uda134x {
 
 
 static unsigned int rates[33 * 2];
 static unsigned int rates[33 * 2];
 #ifdef ENFORCE_RATES
 #ifdef ENFORCE_RATES
-static struct snd_pcm_hw_constraint_list hw_constraints_rates = {
+static const struct snd_pcm_hw_constraint_list hw_constraints_rates = {
 	.count	= ARRAY_SIZE(rates),
 	.count	= ARRAY_SIZE(rates),
 	.list	= rates,
 	.list	= rates,
 	.mask	= 0,
 	.mask	= 0,