Commit 5875adc2 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Takashi Iwai

ALSA: korg1212: make snd_pcm_hardware const

Make these const as they are only used during a copy operation.
Done using Coccinelle.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 114d3549
...@@ -1231,7 +1231,7 @@ static int snd_korg1212_downloadDSPCode(struct snd_korg1212 *korg1212) ...@@ -1231,7 +1231,7 @@ static int snd_korg1212_downloadDSPCode(struct snd_korg1212 *korg1212)
return 0; 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 | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
...@@ -1252,7 +1252,7 @@ static struct snd_pcm_hardware snd_korg1212_playback_info = ...@@ -1252,7 +1252,7 @@ static struct snd_pcm_hardware snd_korg1212_playback_info =
.fifo_size = 0, .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 | .info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_MMAP_VALID |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment