diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 10:45:18 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-19 12:02:23 +0300 |
commit | 46a085a3e70681fe2e184ec5c36e7e3146d12576 (patch) | |
tree | c96c0fee02031ea9830c79785becafe6ae4f8ebe /sound/sh/aica.c | |
parent | 3179a3ea7125b8139aa977d7f8715f4960c241f8 (diff) | |
download | linux-46a085a3e70681fe2e184ec5c36e7e3146d12576.tar.xz |
ALSA: sh: 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/sh/aica.c')
-rw-r--r-- | sound/sh/aica.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 822608da2e21..fdc680ae8aa0 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c @@ -436,7 +436,7 @@ static unsigned long snd_aicapcm_pcm_pointer(struct snd_pcm_substream return readl(AICA_CONTROL_CHANNEL_SAMPLE_NUMBER); } -static struct snd_pcm_ops snd_aicapcm_playback_ops = { +static const struct snd_pcm_ops snd_aicapcm_playback_ops = { .open = snd_aicapcm_pcm_open, .close = snd_aicapcm_pcm_close, .ioctl = snd_pcm_lib_ioctl, |