]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: sb16: constify snd_pcm_ops structures
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 11 Aug 2017 11:58:05 +0000 (17:28 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Aug 2017 21:44:16 +0000 (23:44 +0200)
commit3f12d07cc8bf6293f7349f3bd1a83980ffe6c3d0
treee636a56adb91040f9efd305e0c64c03fc780ba0a
parent67dbde0f50472f9f71c4f9aea727ae35621b4e13
ALSA: sb16: 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/isa/sb/sb16_main.c