diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-11-27 10:19:54 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-11-30 13:08:10 +0000 |
commit | 10b155fd413d31c89057986d0fc3d4ceef8e0e9f (patch) | |
tree | 68128389ace6afcb2554dcc2f008de854fcb6db0 /sound/soc/intel/boards/bytcht_nocodec.c | |
parent | 11918cdcffb127b6b35fe5c438e2ca8aa78249d0 (diff) |
ASoC: intel: boards: bytcht*: Constify static snd_soc_ops
These are only assigned to the ops fields 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>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20211127091954.12075-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/bytcht_nocodec.c')
-rw-r--r-- | sound/soc/intel/boards/bytcht_nocodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/bytcht_nocodec.c b/sound/soc/intel/boards/bytcht_nocodec.c index 67b3c4e97864..115c2bcaabd4 100644 --- a/sound/soc/intel/boards/bytcht_nocodec.c +++ b/sound/soc/intel/boards/bytcht_nocodec.c @@ -93,7 +93,7 @@ static int aif1_startup(struct snd_pcm_substream *substream) &constraints_48000); } -static struct snd_soc_ops aif1_ops = { +static const struct snd_soc_ops aif1_ops = { .startup = aif1_startup, }; |