summaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-17 11:15:59 +0200
committerTakashi Iwai <tiwai@suse.de>2017-08-17 12:44:23 +0200
commitaaffbf7824dde48dc9f72ffa1beb8a1dcb767fe1 (patch)
treea29734b471f6bc41f3833e5587714599055c0f3b /sound/usb
parentALSA: sparc: make snd_pcm_hardware const (diff)
downloadlinux-aaffbf7824dde48dc9f72ffa1beb8a1dcb767fe1.tar.xz
linux-aaffbf7824dde48dc9f72ffa1beb8a1dcb767fe1.zip
ALSA: usb: make snd_pcm_hardware const
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index 9aa5b1855481..a4f3390608d5 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -857,7 +857,7 @@ static int snd_usb_pcm_prepare(struct snd_pcm_substream *substream)
return ret;
}
-static struct snd_pcm_hardware snd_usb_hardware =
+static const struct snd_pcm_hardware snd_usb_hardware =
{
.info = SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |