aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-08 17:37:25 -0400
committerMark Brown <broonie@kernel.org>2017-06-13 16:33:26 -0400
commit0994c030443b50089b8ac74bc863d71238739f2e (patch)
treece2d90581cf13d4fbbe50a1d439258735bfe1f57
parent63ddf5dc9cc77963a993921995d9e390095dc3d4 (diff)
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>
-rw-r--r--sound/soc/samsung/s3c24xx_uda134x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c
index 81a78940967c..55538e333cc8 100644
--- a/sound/soc/samsung/s3c24xx_uda134x.c
+++ b/sound/soc/samsung/s3c24xx_uda134x.c
@@ -44,7 +44,7 @@ struct s3c24xx_uda134x {
44 44
45static unsigned int rates[33 * 2]; 45static unsigned int rates[33 * 2];
46#ifdef ENFORCE_RATES 46#ifdef ENFORCE_RATES
47static struct snd_pcm_hw_constraint_list hw_constraints_rates = { 47static const struct snd_pcm_hw_constraint_list hw_constraints_rates = {
48 .count = ARRAY_SIZE(rates), 48 .count = ARRAY_SIZE(rates),
49 .list = rates, 49 .list = rates,
50 .mask = 0, 50 .mask = 0,