diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-03-18 20:43:14 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-20 14:25:47 +0300 |
commit | 424dfbf2c0dee6f9c13d43d6d209a6e57a492d57 (patch) | |
tree | c432cf0cee2c73a90144772b3380a41c78631110 /sound/soc/mediatek/mt2701 | |
parent | 72cedf599fcebfd6cd2550274d7855838068d28c (diff) | |
download | linux-424dfbf2c0dee6f9c13d43d6d209a6e57a492d57.tar.xz |
ASoC: mediatek: constify snd_soc_ops structures
Declare snd_soc_ops structures as const as they are only stored
in the ops field of a snd_soc_dai_link structure. This field is
of type const, so snd_soc_ops structures having this property
can be made const too.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/mt2701')
-rw-r--r-- | sound/soc/mediatek/mt2701/mt2701-cs42448.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt2701/mt2701-cs42448.c b/sound/soc/mediatek/mt2701/mt2701-cs42448.c index 1e7e8d43fd8a..aa5b31b121e3 100644 --- a/sound/soc/mediatek/mt2701/mt2701-cs42448.c +++ b/sound/soc/mediatek/mt2701/mt2701-cs42448.c @@ -129,7 +129,7 @@ static int mt2701_cs42448_fe_ops_startup(struct snd_pcm_substream *substream) return 0; } -static struct snd_soc_ops mt2701_cs42448_48k_fe_ops = { +static const struct snd_soc_ops mt2701_cs42448_48k_fe_ops = { .startup = mt2701_cs42448_fe_ops_startup, }; |