diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-12 11:31:28 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-12 17:31:58 -0400 |
commit | dee49895b197936c02d27d651e58c90bac18f452 (patch) | |
tree | c8d80b6103c61da781977dd3f6f37b53d34e947b /sound/pci/als4000.c | |
parent | 420b0c1b78aed04b951418ca453673fd6c06c737 (diff) |
ALSA: pci: 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>
Diffstat (limited to 'sound/pci/als4000.c')
-rw-r--r-- | sound/pci/als4000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index 7844a75d8ed9..26b097edec8c 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -592,7 +592,7 @@ static irqreturn_t snd_als4000_interrupt(int irq, void *dev_id) | |||
592 | 592 | ||
593 | /*****************************************************************/ | 593 | /*****************************************************************/ |
594 | 594 | ||
595 | static struct snd_pcm_hardware snd_als4000_playback = | 595 | static const struct snd_pcm_hardware snd_als4000_playback = |
596 | { | 596 | { |
597 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 597 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
598 | SNDRV_PCM_INFO_MMAP_VALID), | 598 | SNDRV_PCM_INFO_MMAP_VALID), |
@@ -611,7 +611,7 @@ static struct snd_pcm_hardware snd_als4000_playback = | |||
611 | .fifo_size = 0 | 611 | .fifo_size = 0 |
612 | }; | 612 | }; |
613 | 613 | ||
614 | static struct snd_pcm_hardware snd_als4000_capture = | 614 | static const struct snd_pcm_hardware snd_als4000_capture = |
615 | { | 615 | { |
616 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | | 616 | .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | |
617 | SNDRV_PCM_INFO_MMAP_VALID), | 617 | SNDRV_PCM_INFO_MMAP_VALID), |