summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-11 17:28:04 +0530
committerTakashi Iwai <tiwai@suse.de>2017-08-12 23:44:15 +0200
commit84c8f90f0db341aefdd62726c2fe6724d155bbfe (patch)
tree9801c53cac178a18006a2dfd17263d7de478b05b /sound/isa
parentb6dca4622a0fbad4b5f5160dfaabfe5d7bbc1b61 (diff)
downloadlinux-stable-84c8f90f0db341aefdd62726c2fe6724d155bbfe.tar.gz
linux-stable-84c8f90f0db341aefdd62726c2fe6724d155bbfe.tar.bz2
linux-stable-84c8f90f0db341aefdd62726c2fe6724d155bbfe.zip
ALSA: emu8000: constify snd_pcm_ops structures
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by <sound/pcm.h> work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/sb/emu8000_pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/sb/emu8000_pcm.c b/sound/isa/sb/emu8000_pcm.c
index 2ee8d67871ec..940982741d50 100644
--- a/sound/isa/sb/emu8000_pcm.c
+++ b/sound/isa/sb/emu8000_pcm.c
@@ -670,7 +670,7 @@ static snd_pcm_uframes_t emu8k_pcm_pointer(struct snd_pcm_substream *subs)
}
-static struct snd_pcm_ops emu8k_pcm_ops = {
+static const struct snd_pcm_ops emu8k_pcm_ops = {
.open = emu8k_pcm_open,
.close = emu8k_pcm_close,
.ioctl = snd_pcm_lib_ioctl,