diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-09-20 21:39:47 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-09-21 13:24:51 +0100 |
commit | 815b55e1101f074e737c084e996d086dcb454399 (patch) | |
tree | 55f0c9317a423102d5dbcf0a28aaa35e9f06a5b0 /sound/soc/fsl/imx-audmix.c | |
parent | 8e8f2ac09db909e7cb8ae1fef9c1e524c49a1b48 (diff) | |
download | linux-815b55e1101f074e737c084e996d086dcb454399.tar.bz2 |
ASoC: fsl: Constify static snd_soc_ops
These are only assigned to the ops field in the snd_soc_dai_link struct
which is a pointer to const struct snd_soc_ops. Make them const to allow
the compiler to put them in read-only memory.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210920193947.10237-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/imx-audmix.c')
-rw-r--r-- | sound/soc/fsl/imx-audmix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-audmix.c b/sound/soc/fsl/imx-audmix.c index a364e2415de0..0d637929bfef 100644 --- a/sound/soc/fsl/imx-audmix.c +++ b/sound/soc/fsl/imx-audmix.c @@ -132,12 +132,12 @@ static int imx_audmix_be_hw_params(struct snd_pcm_substream *substream, return ret; } -static struct snd_soc_ops imx_audmix_fe_ops = { +static const struct snd_soc_ops imx_audmix_fe_ops = { .startup = imx_audmix_fe_startup, .hw_params = imx_audmix_fe_hw_params, }; -static struct snd_soc_ops imx_audmix_be_ops = { +static const struct snd_soc_ops imx_audmix_be_ops = { .hw_params = imx_audmix_be_hw_params, }; |