]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: trident: constify snd_pcm_ops structures
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 10 Aug 2017 11:47:38 +0000 (17:17 +0530)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Aug 2017 15:56:11 +0000 (17:56 +0200)
commite19d6b84fe0cf80c36cacfb1c92640a0a69503a4
treeee478644e1e3e95785d3bfc75c61dfb6651777f7
parentaa4f77db4cd76f95b4a585f17c3c31f547c8a598
ALSA: trident: 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/pci/trident/trident_main.c