diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-18 13:15:21 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-19 11:02:27 +0200 |
commit | 31cb1fb41df3b871d337544ed5199a135e606f69 (patch) | |
tree | 1aa74f5af6cd1377837eeb63f08d8e52f24a62c5 /sound/usb/usx2y/usx2yhwdeppcm.c | |
parent | 7a205f5db56d9055ff368ab5103275d0164a41c8 (diff) | |
download | linux-stable-31cb1fb41df3b871d337544ed5199a135e606f69.tar.gz linux-stable-31cb1fb41df3b871d337544ed5199a135e606f69.tar.bz2 linux-stable-31cb1fb41df3b871d337544ed5199a135e606f69.zip |
ALSA: usb: constify snd_pcm_ops structures
snd_pcm_ops are not supposed to change at runtime. All functions
working with snd_pcm_ops provided by <sound/pcm.h> work with
const snd_pcm_ops. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/usx2y/usx2yhwdeppcm.c')
-rw-r--r-- | sound/usb/usx2y/usx2yhwdeppcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/usx2y/usx2yhwdeppcm.c b/sound/usb/usx2y/usx2yhwdeppcm.c index d51c7fd7835b..0d050528a4e1 100644 --- a/sound/usb/usx2y/usx2yhwdeppcm.c +++ b/sound/usb/usx2y/usx2yhwdeppcm.c @@ -587,7 +587,7 @@ static int snd_usX2Y_usbpcm_close(struct snd_pcm_substream *substream) } -static struct snd_pcm_ops snd_usX2Y_usbpcm_ops = +static const struct snd_pcm_ops snd_usX2Y_usbpcm_ops = { .open = snd_usX2Y_usbpcm_open, .close = snd_usX2Y_usbpcm_close, |