summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/bytcht_nocodec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-08 23:37:22 +0200
committerMark Brown <broonie@kernel.org>2017-06-13 21:29:37 +0100
commit1ebb4d9dbf8f7a429abff359fa1d779b639da76f (patch)
tree8583239c7bbd9543bbd2e24cd0bdede46598aede /sound/soc/intel/boards/bytcht_nocodec.c
parenta03bdaa565cbf23fa86697727a7d2bf1465e7a03 (diff)
downloadlinux-stable-1ebb4d9dbf8f7a429abff359fa1d779b639da76f.tar.gz
linux-stable-1ebb4d9dbf8f7a429abff359fa1d779b639da76f.tar.bz2
linux-stable-1ebb4d9dbf8f7a429abff359fa1d779b639da76f.zip
ASoC: intel: byt: 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> Acked-By: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/bytcht_nocodec.c')
-rw-r--r--sound/soc/intel/boards/bytcht_nocodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/intel/boards/bytcht_nocodec.c b/sound/soc/intel/boards/bytcht_nocodec.c
index 89853eeaaf9d..1dd9441806fa 100644
--- a/sound/soc/intel/boards/bytcht_nocodec.c
+++ b/sound/soc/intel/boards/bytcht_nocodec.c
@@ -85,11 +85,11 @@ static int codec_fixup(struct snd_soc_pcm_runtime *rtd,
return 0;
}
-static unsigned int rates_48000[] = {
+static const unsigned int rates_48000[] = {
48000,
};
-static struct snd_pcm_hw_constraint_list constraints_48000 = {
+static const struct snd_pcm_hw_constraint_list constraints_48000 = {
.count = ARRAY_SIZE(rates_48000),
.list = rates_48000,
};