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:

committed by
Takashi Iwai

parent
7a7a2df434
commit
efdbe3c3ed
@@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user