mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
staging: greybus: audio: constify snd_soc_dai_ops structures
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by <sound/soc-dai.h> work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Acked-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4a27e3e09d
commit
ccc5d98ae0
1 changed files with 1 additions and 1 deletions
|
@ -674,7 +674,7 @@ static int gbcodec_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct snd_soc_dai_ops gbcodec_dai_ops = {
|
static const struct snd_soc_dai_ops gbcodec_dai_ops = {
|
||||||
.startup = gbcodec_startup,
|
.startup = gbcodec_startup,
|
||||||
.shutdown = gbcodec_shutdown,
|
.shutdown = gbcodec_shutdown,
|
||||||
.hw_params = gbcodec_hw_params,
|
.hw_params = gbcodec_hw_params,
|
||||||
|
|
Loading…
Reference in a new issue