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 14:24:51 +0200 |
commit | 815b55e1101f074e737c084e996d086dcb454399 (patch) | |
tree | 55f0c9317a423102d5dbcf0a28aaa35e9f06a5b0 /sound/soc/fsl/imx-card.c | |
parent | ASoC: Drop mistakenly applied SPI patch (diff) | |
download | linux-815b55e1101f074e737c084e996d086dcb454399.tar.xz linux-815b55e1101f074e737c084e996d086dcb454399.zip |
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-card.c')
-rw-r--r-- | sound/soc/fsl/imx-card.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c index 58fd0639a069..05dff2dc1d19 100644 --- a/sound/soc/fsl/imx-card.c +++ b/sound/soc/fsl/imx-card.c @@ -442,12 +442,12 @@ static int imx_aif_startup(struct snd_pcm_substream *substream) return ret; } -static struct snd_soc_ops imx_aif_ops = { +static const struct snd_soc_ops imx_aif_ops = { .hw_params = imx_aif_hw_params, .startup = imx_aif_startup, }; -static struct snd_soc_ops imx_aif_ops_be = { +static const struct snd_soc_ops imx_aif_ops_be = { .hw_params = imx_aif_hw_params, }; |