From: Lars-Peter Clausen Date: Thu, 22 Oct 2015 08:43:21 +0000 (+0200) Subject: ASoC: h1940_uda1380: Constify rate constraints X-Git-Tag: v4.14-rc1~4199^2~9^2^4~4^4~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de687fb133f7ede18f026feefbeab3106081148d;p=platform%2Fkernel%2Flinux-rpi.git ASoC: h1940_uda1380: Constify rate constraints The rate constraints in this board driver are not modified at runtime, so make them const. While we are at it also remove the unnecessary 0 initializer for the mask field. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/h1940_uda1380.c b/sound/soc/samsung/h1940_uda1380.c index c72e9fb..5f5825f 100644 --- a/sound/soc/samsung/h1940_uda1380.c +++ b/sound/soc/samsung/h1940_uda1380.c @@ -26,16 +26,15 @@ #include #include "s3c24xx-i2s.h" -static unsigned int rates[] = { +static const unsigned int rates[] = { 11025, 22050, 44100, }; -static struct snd_pcm_hw_constraint_list hw_rates = { +static const struct snd_pcm_hw_constraint_list hw_rates = { .count = ARRAY_SIZE(rates), .list = rates, - .mask = 0, }; static struct snd_soc_jack hp_jack;