summaryrefslogtreecommitdiffstats
path: root/sound/usb/midi.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-22 08:55:07 +0100
committerTakashi Iwai <tiwai@suse.de>2015-11-22 09:21:16 +0100
commitefdbe3c3edb6c8c98a8be863f60916780a5375c1 (patch)
treeb12ad7c60e525b042957f37c5b87fc74cf221c7a /sound/usb/midi.c
parentALSA: azt3328: Remove unnecessary synchronize_irq() before free_irq() (diff)
downloadlinux-efdbe3c3edb6c8c98a8be863f60916780a5375c1.tar.xz
linux-efdbe3c3edb6c8c98a8be863f60916780a5375c1.zip
ALSA: midi: constify snd_rawmidi_global_ops structures
The snd_rawmidi_global_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/midi.c')
-rw-r--r--sound/usb/midi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/midi.c b/sound/usb/midi.c
index 5b4c58c3e2c5..ee212e71f180 100644
--- a/sound/usb/midi.c
+++ b/sound/usb/midi.c
@@ -2206,7 +2206,7 @@ static int snd_usbmidi_create_endpoints_midiman(struct snd_usb_midi *umidi,
return 0;
}
-static struct snd_rawmidi_global_ops snd_usbmidi_ops = {
+static const struct snd_rawmidi_global_ops snd_usbmidi_ops = {
.get_port_info = snd_usbmidi_get_port_info,
};