ALSA: korg1212: make snd_pcm_hardware const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 12 Aug 2017 15:31:16 +0000 (21:01 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Aug 2017 21:31:42 +0000 (23:31 +0200)
Make these const as they are only used during a copy operation.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/korg1212/korg1212.c

index b28fe4914d6b6db70aec6b7c18a9f33022411e5e..04cd71c74e5ceac3bdd790cc64d1e39dd4543240 100644 (file)
@@ -1231,7 +1231,7 @@ static int snd_korg1212_downloadDSPCode(struct snd_korg1212 *korg1212)
         return 0;
 }
 
-static struct snd_pcm_hardware snd_korg1212_playback_info =
+static const struct snd_pcm_hardware snd_korg1212_playback_info =
 {
        .info =              (SNDRV_PCM_INFO_MMAP |
                               SNDRV_PCM_INFO_MMAP_VALID |
@@ -1252,7 +1252,7 @@ static struct snd_pcm_hardware snd_korg1212_playback_info =
         .fifo_size =          0,
 };
 
-static struct snd_pcm_hardware snd_korg1212_capture_info =
+static const struct snd_pcm_hardware snd_korg1212_capture_info =
 {
         .info =              (SNDRV_PCM_INFO_MMAP |
                               SNDRV_PCM_INFO_MMAP_VALID |