ALSA: rme9652: make snd_pcm_hardware const
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>
This commit is contained in:
parent
14ff46fd99
commit
18ed1cf00b
@ -4211,7 +4211,7 @@ static int snd_hdsp_prepare(struct snd_pcm_substream *substream)
|
||||
return result;
|
||||
}
|
||||
|
||||
static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
|
||||
static const struct snd_pcm_hardware snd_hdsp_playback_subinfo =
|
||||
{
|
||||
.info = (SNDRV_PCM_INFO_MMAP |
|
||||
SNDRV_PCM_INFO_MMAP_VALID |
|
||||
@ -4241,7 +4241,7 @@ static struct snd_pcm_hardware snd_hdsp_playback_subinfo =
|
||||
.fifo_size = 0
|
||||
};
|
||||
|
||||
static struct snd_pcm_hardware snd_hdsp_capture_subinfo =
|
||||
static const struct snd_pcm_hardware snd_hdsp_capture_subinfo =
|
||||
{
|
||||
.info = (SNDRV_PCM_INFO_MMAP |
|
||||
SNDRV_PCM_INFO_MMAP_VALID |
|
||||
|
@ -2181,7 +2181,7 @@ static int snd_rme9652_prepare(struct snd_pcm_substream *substream)
|
||||
return result;
|
||||
}
|
||||
|
||||
static struct snd_pcm_hardware snd_rme9652_playback_subinfo =
|
||||
static const struct snd_pcm_hardware snd_rme9652_playback_subinfo =
|
||||
{
|
||||
.info = (SNDRV_PCM_INFO_MMAP |
|
||||
SNDRV_PCM_INFO_MMAP_VALID |
|
||||
@ -2205,7 +2205,7 @@ static struct snd_pcm_hardware snd_rme9652_playback_subinfo =
|
||||
.fifo_size = 0,
|
||||
};
|
||||
|
||||
static struct snd_pcm_hardware snd_rme9652_capture_subinfo =
|
||||
static const struct snd_pcm_hardware snd_rme9652_capture_subinfo =
|
||||
{
|
||||
.info = (SNDRV_PCM_INFO_MMAP |
|
||||
SNDRV_PCM_INFO_MMAP_VALID |
|
||||
|
Loading…
Reference in New Issue
Block a user