* [PATCH] ASoC: Intel: kbl: make snd_pcm_hw_constraint_list const
@ 2017-08-11 15:56 Bhumika Goyal
0 siblings, 0 replies; only message in thread
From: Bhumika Goyal @ 2017-08-11 15:56 UTC (permalink / raw)
To: julia.lawall, lgirdwood, broonie, perex, tiwai, alsa-devel, linux-kernel
Cc: Bhumika Goyal
Make these const as they are only passed to the function
snd_pcm_hw_constraint_list having the corresponding argument as const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/intel/boards/kbl_rt5663_max98927.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/intel/boards/kbl_rt5663_max98927.c b/sound/soc/intel/boards/kbl_rt5663_max98927.c
index 12b34b9..8bdd613 100644
--- a/sound/soc/intel/boards/kbl_rt5663_max98927.c
+++ b/sound/soc/intel/boards/kbl_rt5663_max98927.c
@@ -286,7 +286,7 @@ static int kabylake_5663_hdmi2_init(struct snd_soc_pcm_runtime *rtd)
48000,
};
-static struct snd_pcm_hw_constraint_list constraints_rates = {
+static const struct snd_pcm_hw_constraint_list constraints_rates = {
.count = ARRAY_SIZE(rates),
.list = rates,
.mask = 0,
@@ -296,7 +296,7 @@ static int kabylake_5663_hdmi2_init(struct snd_soc_pcm_runtime *rtd)
2,
};
-static struct snd_pcm_hw_constraint_list constraints_channels = {
+static const struct snd_pcm_hw_constraint_list constraints_channels = {
.count = ARRAY_SIZE(channels),
.list = channels,
.mask = 0,
@@ -425,7 +425,7 @@ static int kabylake_dmic_startup(struct snd_pcm_substream *substream)
16000,
};
-static struct snd_pcm_hw_constraint_list constraints_16000 = {
+static const struct snd_pcm_hw_constraint_list constraints_16000 = {
.count = ARRAY_SIZE(rates_16000),
.list = rates_16000,
};
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-11 15:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-11 15:56 [PATCH] ASoC: Intel: kbl: make snd_pcm_hw_constraint_list const Bhumika Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®