ALSA: isa: make snd_pcm_hardware const
Make these const as they are 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>
Este commit está contenido en:

cometido por
Takashi Iwai

padre
b6c0b71561
commit
aec5465485
@@ -339,7 +339,7 @@ static irqreturn_t snd_ad1816a_interrupt(int irq, void *dev_id)
|
||||
}
|
||||
|
||||
|
||||
static struct snd_pcm_hardware snd_ad1816a_playback = {
|
||||
static const struct snd_pcm_hardware snd_ad1816a_playback = {
|
||||
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
|
||||
SNDRV_PCM_INFO_MMAP_VALID),
|
||||
.formats = (SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW |
|
||||
@@ -358,7 +358,7 @@ static struct snd_pcm_hardware snd_ad1816a_playback = {
|
||||
.fifo_size = 0,
|
||||
};
|
||||
|
||||
static struct snd_pcm_hardware snd_ad1816a_capture = {
|
||||
static const struct snd_pcm_hardware snd_ad1816a_capture = {
|
||||
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
|
||||
SNDRV_PCM_INFO_MMAP_VALID),
|
||||
.formats = (SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW |
|
||||
|
Referencia en una nueva incidencia
Block a user