diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-17 11:15:52 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-17 12:44:11 +0200 |
commit | aec5465485144e7b68da765f18d46bde4576c009 (patch) | |
tree | 3c0a255f3b45e5d7bbdd7365f5bfb6d4f863fe8d /sound/isa/wss | |
parent | ALSA: drivers: make snd_pcm_hardware const (diff) | |
download | linux-aec5465485144e7b68da765f18d46bde4576c009.tar.xz linux-aec5465485144e7b68da765f18d46bde4576c009.zip |
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>
Diffstat (limited to 'sound/isa/wss')
-rw-r--r-- | sound/isa/wss/wss_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/wss/wss_lib.c b/sound/isa/wss/wss_lib.c index 29adb01ea0e8..8a852042a066 100644 --- a/sound/isa/wss/wss_lib.c +++ b/sound/isa/wss/wss_lib.c @@ -1452,7 +1452,7 @@ static int snd_wss_probe(struct snd_wss *chip) */ -static struct snd_pcm_hardware snd_wss_playback = +static const struct snd_pcm_hardware snd_wss_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP_VALID | @@ -1472,7 +1472,7 @@ static struct snd_pcm_hardware snd_wss_playback = .fifo_size = 0, }; -static struct snd_pcm_hardware snd_wss_capture = +static const struct snd_pcm_hardware snd_wss_capture = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP_VALID | |