diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-22 08:55:07 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-11-22 09:21:16 +0100 |
commit | efdbe3c3edb6c8c98a8be863f60916780a5375c1 (patch) | |
tree | b12ad7c60e525b042957f37c5b87fc74cf221c7a /include/sound/rawmidi.h | |
parent | 7a7a2df434cec5614271666b84b2ea1f41048e91 (diff) | |
download | op-kernel-dev-efdbe3c3edb6c8c98a8be863f60916780a5375c1.zip op-kernel-dev-efdbe3c3edb6c8c98a8be863f60916780a5375c1.tar.gz |
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 'include/sound/rawmidi.h')
-rw-r--r-- | include/sound/rawmidi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/rawmidi.h b/include/sound/rawmidi.h index f6cbef7..fdabbb4 100644 --- a/include/sound/rawmidi.h +++ b/include/sound/rawmidi.h @@ -130,7 +130,7 @@ struct snd_rawmidi { int ossreg; #endif - struct snd_rawmidi_global_ops *ops; + const struct snd_rawmidi_global_ops *ops; struct snd_rawmidi_str streams[2]; |