Commit 70bad123 authored by Julia Lawall's avatar Julia Lawall Committed by Mark Brown

ASoC: Intel: constify snd_compr_codec_caps structures

These snd_compr_codec_caps structures are only copied into other
structures, so they can be const.

Done with the help of Coccinelle.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2788808a
...@@ -407,7 +407,7 @@ static int sst_cdev_caps(struct snd_compr_caps *caps) ...@@ -407,7 +407,7 @@ static int sst_cdev_caps(struct snd_compr_caps *caps)
return 0; return 0;
} }
static struct snd_compr_codec_caps caps_mp3 = { static const struct snd_compr_codec_caps caps_mp3 = {
.num_descriptors = 1, .num_descriptors = 1,
.descriptor[0].max_ch = 2, .descriptor[0].max_ch = 2,
.descriptor[0].sample_rates[0] = 48000, .descriptor[0].sample_rates[0] = 48000,
...@@ -424,7 +424,7 @@ static struct snd_compr_codec_caps caps_mp3 = { ...@@ -424,7 +424,7 @@ static struct snd_compr_codec_caps caps_mp3 = {
.descriptor[0].formats = 0, .descriptor[0].formats = 0,
}; };
static struct snd_compr_codec_caps caps_aac = { static const struct snd_compr_codec_caps caps_aac = {
.num_descriptors = 2, .num_descriptors = 2,
.descriptor[1].max_ch = 2, .descriptor[1].max_ch = 2,
.descriptor[0].sample_rates[0] = 48000, .descriptor[0].sample_rates[0] = 48000,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment