ALSA: usb: make snd_pcm_hardware const
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 17 Aug 2017 09:15:59 +0000 (14:45 +0530)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Aug 2017 10:44:23 +0000 (12:44 +0200)
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>
sound/usb/pcm.c

index 9aa5b18554812a949503375e23764b3d926a0f2d..a4f3390608d5605f721e9fef38203350cf4214bf 100644 (file)
@@ -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 |