diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-01-05 17:01:14 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-01-12 12:49:36 +0100 |
commit | 6ba79b853289289052b4c4c2c68de4418cd8c57d (patch) | |
tree | 8697b665c5f435964d699a8e14826f569dfa38d6 /sound/core | |
parent | 46a049dae771b95e77ac6c823330f4a60f600236 (diff) | |
download | linux-6ba79b853289289052b4c4c2c68de4418cd8c57d.tar.bz2 |
ALSA: rawmidi: Add const to snd_rawmidi_ops
Make snd_rawmidi_substream.ops to be a const pointer to be safer and
allow more optimization. The patches to constify each rawmidi ops
will follow.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/rawmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index 2096bb0835c8..8da9cb245d01 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c @@ -1749,7 +1749,7 @@ static int snd_rawmidi_dev_disconnect(struct snd_device *device) * Sets the rawmidi operators for the given stream direction. */ void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream, - struct snd_rawmidi_ops *ops) + const struct snd_rawmidi_ops *ops) { struct snd_rawmidi_substream *substream; |