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>
This commit is contained in:
Julia Lawall
2015-11-22 08:55:07 +01:00
committed by Takashi Iwai
parent 7a7a2df434
commit efdbe3c3ed
3 changed files with 3 additions and 3 deletions

View File

@@ -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];