summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-12 11:31:17 -0400
committerTakashi Iwai <tiwai@suse.de>2017-08-12 17:31:44 -0400
commitd670315c4f08cf3f380d249c64b88171bd33a348 (patch)
tree1f2388733c3c299cb4027eb3689cde4b4bc45765
parent5875adc2a77021874249009011d01ceae31b139a (diff)
ALSA: cs5535audio: 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>
-rw-r--r--sound/pci/cs5535audio/cs5535audio_pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c
index c208c1d8dbb2..ee7065f6e162 100644
--- a/sound/pci/cs5535audio/cs5535audio_pcm.c
+++ b/sound/pci/cs5535audio/cs5535audio_pcm.c
@@ -33,7 +33,7 @@
33#include <sound/ac97_codec.h> 33#include <sound/ac97_codec.h>
34#include "cs5535audio.h" 34#include "cs5535audio.h"
35 35
36static struct snd_pcm_hardware snd_cs5535audio_playback = 36static const struct snd_pcm_hardware snd_cs5535audio_playback =
37{ 37{
38 .info = ( 38 .info = (
39 SNDRV_PCM_INFO_MMAP | 39 SNDRV_PCM_INFO_MMAP |
@@ -62,7 +62,7 @@ static struct snd_pcm_hardware snd_cs5535audio_playback =
62 .fifo_size = 0, 62 .fifo_size = 0,
63}; 63};
64 64
65static struct snd_pcm_hardware snd_cs5535audio_capture = 65static const struct snd_pcm_hardware snd_cs5535audio_capture =
66{ 66{
67 .info = ( 67 .info = (
68 SNDRV_PCM_INFO_MMAP | 68 SNDRV_PCM_INFO_MMAP |