mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 07:30:16 +00:00
ALSA: seq: Constify snd_rawmidi_ops
Now snd_rawmidi_ops is maintained as a const pointer in snd_rawmidi, we can constify the definitions. Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6ba79b8532
commit
c62a57004a
@ -349,13 +349,13 @@ static int snd_virmidi_unuse(void *private_data,
|
||||
* Register functions
|
||||
*/
|
||||
|
||||
static struct snd_rawmidi_ops snd_virmidi_input_ops = {
|
||||
static const struct snd_rawmidi_ops snd_virmidi_input_ops = {
|
||||
.open = snd_virmidi_input_open,
|
||||
.close = snd_virmidi_input_close,
|
||||
.trigger = snd_virmidi_input_trigger,
|
||||
};
|
||||
|
||||
static struct snd_rawmidi_ops snd_virmidi_output_ops = {
|
||||
static const struct snd_rawmidi_ops snd_virmidi_output_ops = {
|
||||
.open = snd_virmidi_output_open,
|
||||
.close = snd_virmidi_output_close,
|
||||
.trigger = snd_virmidi_output_trigger,
|
||||
|
Loading…
x
Reference in New Issue
Block a user