diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-11 17:28:04 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-12 23:44:15 +0200 |
commit | 84c8f90f0db341aefdd62726c2fe6724d155bbfe (patch) | |
tree | 9801c53cac178a18006a2dfd17263d7de478b05b /sound/isa/sb | |
parent | b6dca4622a0fbad4b5f5160dfaabfe5d7bbc1b61 (diff) | |
download | linux-84c8f90f0db341aefdd62726c2fe6724d155bbfe.tar.gz linux-84c8f90f0db341aefdd62726c2fe6724d155bbfe.tar.bz2 linux-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/sb')
-rw-r--r-- | sound/isa/sb/emu8000_pcm.c | 2 |
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, |