diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-09-27 08:19:27 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-10-02 14:33:23 +0200 |
commit | e195a331c4124a6527e5e1b6fbd93a6b4a984d7b (patch) | |
tree | 9b06cc3e40fe50eee949ced8dac39d10a3a9f6c2 /sound/usb/line6/playback.h | |
parent | ALSA: line6: add support for POD HD DESKTOP (diff) | |
download | linux-e195a331c4124a6527e5e1b6fbd93a6b4a984d7b.tar.xz linux-e195a331c4124a6527e5e1b6fbd93a6b4a984d7b.zip |
ALSA: line6: make snd_pcm_ops const
Make these const as they are only passed to a const argument of the
function snd_pcm_set_ops in the file referencing them. Also, add const
to the declaration in the headers.
Structures found using Coccinelle and changes done by hand.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/playback.h')
-rw-r--r-- | sound/usb/line6/playback.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/line6/playback.h b/sound/usb/line6/playback.h index 51fce29e8726..d8d3b8a07a72 100644 --- a/sound/usb/line6/playback.h +++ b/sound/usb/line6/playback.h @@ -27,7 +27,7 @@ */ #define USE_CLEAR_BUFFER_WORKAROUND 1 -extern struct snd_pcm_ops snd_line6_playback_ops; +extern const struct snd_pcm_ops snd_line6_playback_ops; extern int line6_create_audio_out_urbs(struct snd_line6_pcm *line6pcm); extern int line6_submit_audio_out_all_urbs(struct snd_line6_pcm *line6pcm); |