ALSA: sparc: 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>
这个提交包含在:
@@ -2213,7 +2213,7 @@ static snd_pcm_uframes_t snd_dbri_pointer(struct snd_pcm_substream *substream)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_dbri_ops = {
|
||||
static const struct snd_pcm_ops snd_dbri_ops = {
|
||||
.open = snd_dbri_open,
|
||||
.close = snd_dbri_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
在新工单中引用
屏蔽一个用户