# \[PATCH 0/3\] constify snd\_rawmidi\_ops structures

- From: Julia Lawall \<hidden\>
- Date: 2017-08-15 09:02:33 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2017/08/5067551
- Thread: https://ratatoskr.run/linux-input/2017/08/5067551/t.md

```text
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.

---

 drivers/hid/hid-prodikeys.c          |    2 +-
 drivers/usb/gadget/function/f_midi.c |    4 ++--
 sound/firewire/motu/motu-midi.c      |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
```
