summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-17 14:45:59 +0530
committerTakashi Iwai <tiwai@suse.de>2017-08-17 12:44:23 +0200
commitaaffbf7824dde48dc9f72ffa1beb8a1dcb767fe1 (patch)
treea29734b471f6bc41f3833e5587714599055c0f3b
parent688ed206e16e13973cfb9e4d10c6a75768ebfd48 (diff)
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>
-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 |