]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: gadget: f_midi: constify snd_rawmidi_ops structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 15 Aug 2017 08:09:52 +0000 (10:09 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 09:46:04 +0000 (12:46 +0300)
commitc05429005ba906bb88d6e50898d1f64604751dc2
tree6b8363e1c4f5d7ed039c697e2300ba91fa9b3aa6
parentdfcdcba9e30d23db0cbaae4828b0566a927e2489
usb: gadget: f_midi: constify snd_rawmidi_ops structures

These snd_rawmidi_ops structures are only passed as the third
argument of snd_rawmidi_set_ops.  This argument is const, so the
snd_rawmidi_ops structures can be const too.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_midi.c