]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Constify the snd_pcm_substream struct ops field
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 24 May 2013 13:18:10 +0000 (15:18 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 May 2013 13:41:44 +0000 (15:41 +0200)
commit813550d42eb23ce6f698f9ea99003f445ff4f434
tree6e254e4b5b673569b2910fb2a6d7a16c86298308
parent9bd3fec0a11054ffa0180c46fa6f6f8e89dd14c8
ALSA: Constify the snd_pcm_substream struct ops field

The ops field of the snd_pcm_substream struct is never modified inside the ALSA
core. Making it const allows drivers to declare their snd_pcm_ops struct as
const.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm_lib.c