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 /include | |
parent | 46a049dae771b95e77ac6c823330f4a60f600236 (diff) | |
download | talos-op-linux-6ba79b853289289052b4c4c2c68de4418cd8c57d.tar.gz talos-op-linux-6ba79b853289289052b4c4c2c68de4418cd8c57d.zip |
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 'include')
-rw-r--r-- | include/sound/rawmidi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/rawmidi.h b/include/sound/rawmidi.h index f730b91e472f..492a3ca7f17b 100644 --- a/include/sound/rawmidi.h +++ b/include/sound/rawmidi.h @@ -103,7 +103,7 @@ struct snd_rawmidi_substream { struct snd_rawmidi_runtime *runtime; struct pid *pid; /* hardware layer */ - struct snd_rawmidi_ops *ops; + const struct snd_rawmidi_ops *ops; }; struct snd_rawmidi_file { @@ -155,7 +155,7 @@ int snd_rawmidi_new(struct snd_card *card, char *id, int device, int output_count, int input_count, struct snd_rawmidi **rmidi); void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream, - struct snd_rawmidi_ops *ops); + const struct snd_rawmidi_ops *ops); /* callbacks */ |