diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-03-13 20:12:22 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-15 14:34:32 +0100 |
commit | 5ace37bd7947e28dec5559a57ddc6e1d997dbec5 (patch) | |
tree | 6bd71d30ec308d8034ab78ab38614f9164efd0c1 /sound/soc/fsl/mpc8610_hpcd.c | |
parent | ASoC: fsl: Remove unneeded init of static variable (diff) | |
download | linux-5ace37bd7947e28dec5559a57ddc6e1d997dbec5.tar.xz linux-5ace37bd7947e28dec5559a57ddc6e1d997dbec5.zip |
ASoC: fsl: 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.
The following .o files did not compile:
sound/soc/fsl/{p1022_rdk.c/p1022_ds.c/mpc8610_hpcd.c}
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/mpc8610_hpcd.c')
-rw-r--r-- | sound/soc/fsl/mpc8610_hpcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index ddf49f30b23f..a639b52c16f6 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c @@ -174,7 +174,7 @@ static int mpc8610_hpcd_machine_remove(struct snd_soc_card *card) /** * mpc8610_hpcd_ops: ASoC machine driver operations */ -static struct snd_soc_ops mpc8610_hpcd_ops = { +static const struct snd_soc_ops mpc8610_hpcd_ops = { .startup = mpc8610_hpcd_startup, }; |