diff options
author | Bhumika Goyal | 2017-08-11 17:56:49 +0200 |
---|---|---|
committer | Mark Brown | 2017-08-16 13:01:03 +0200 |
commit | 2d5f8487818b9231dfb244adda5e890e004b4a76 (patch) | |
tree | 1ceb6bafe2480010437f4d789eff9858ebc30134 /sound/soc | |
parent | ASoC: intel: constify snd_pcm_ops structures (diff) | |
download | kernel-qcow2-linux-2d5f8487818b9231dfb244adda5e890e004b4a76.tar.gz kernel-qcow2-linux-2d5f8487818b9231dfb244adda5e890e004b4a76.tar.xz kernel-qcow2-linux-2d5f8487818b9231dfb244adda5e890e004b4a76.zip |
ASoC: Intel: kbl: make snd_pcm_hw_constraint_list const
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/intel/boards/kbl_rt5663_max98927.c | 6 |
1 files 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 12b34b9a0104..8bdd6131c6ad 100644 --- a/sound/soc/intel/boards/kbl_rt5663_max98927.c +++ b/sound/soc/intel/boards/kbl_rt5663_max98927.c @@ -286,7 +286,7 @@ static unsigned int rates[] = { 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 unsigned int channels[] = { 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 unsigned int rates_16000[] = { 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, }; |