]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: drivers: constify snd_pcm_ops structures
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 18 Aug 2017 07:45:12 +0000 (13:15 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sat, 19 Aug 2017 09:02:15 +0000 (11:02 +0200)
commit1919a768bca7b79182a53a59abc5599ed5a70f9b
tree99a100ad5a9552f6857c7b250d73aefffd0d3d5a
parent5be4fdd062bcb0b3becb9301b81fb7e6af8fbc78
ALSA: drivers: 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>
sound/drivers/aloop.c
sound/drivers/ml403-ac97cr.c