From: Takashi Iwai Date: Thu, 8 Jun 2017 21:37:25 +0000 (+0200) Subject: ASoC: samsung: Constify hw_constraints X-Git-Tag: v4.13-rc4~15^2~16^2^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0994c030443b50089b8ac74bc863d71238739f2e;p=platform%2Fkernel%2Flinux-exynos.git 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 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index 81a7894..55538e3 100644 --- a/sound/soc/samsung/s3c24xx_uda134x.c +++ b/sound/soc/samsung/s3c24xx_uda134x.c @@ -44,7 +44,7 @@ struct s3c24xx_uda134x { static unsigned int rates[33 * 2]; #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), .list = rates, .mask = 0,