diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-08-15 10:09:53 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-08-15 11:02:45 +0200 |
commit | 0acb310c3273d55ad19c9a5f48b73224ce6e2dc0 (patch) | |
tree | 432ea34fefa46c3432e1df8552437edf21ac2735 /drivers/hid | |
parent | 81b7ec4e621f1e16dcb688cda819828f49c375b2 (diff) |
HID: prodikeys: constify snd_rawmidi_ops structures
This snd_rawmidi_ops structure is only passed as the third
argument of snd_rawmidi_set_ops. This argument is const, so the
snd_rawmidi_ops structure can be const too.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-prodikeys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-prodikeys.c b/drivers/hid/hid-prodikeys.c index f095bf8a3aa9..49c4bd34b3c5 100644 --- a/drivers/hid/hid-prodikeys.c +++ b/drivers/hid/hid-prodikeys.c @@ -593,7 +593,7 @@ static void pcmidi_in_trigger(struct snd_rawmidi_substream *substream, int up) pm->in_triggered = up; } -static struct snd_rawmidi_ops pcmidi_in_ops = { +static const struct snd_rawmidi_ops pcmidi_in_ops = { .open = pcmidi_in_open, .close = pcmidi_in_close, .trigger = pcmidi_in_trigger |