projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c0ddf0
)
ALSA: lola: make snd_pcm_hardware const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 12 Aug 2017 15:31:19 +0000
(21:01 +0530)
committer
Takashi Iwai
<tiwai@suse.de>
Sat, 12 Aug 2017 21:31:46 +0000
(23:31 +0200)
Make this const as it is 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>
sound/pci/lola/lola_pcm.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/lola/lola_pcm.c
b/sound/pci/lola/lola_pcm.c
index 1268ba329016f77c54bb7ed4769ab4a7ea31cc4a..310b26a756c94339c2a0e52ec14c8ed78e500b2e 100644
(file)
--- a/
sound/pci/lola/lola_pcm.c
+++ b/
sound/pci/lola/lola_pcm.c
@@
-197,7
+197,7
@@
static void lola_stream_reset(struct lola *chip, struct lola_stream *str)
}
}
-static struct snd_pcm_hardware lola_pcm_hw = {
+static
const
struct snd_pcm_hardware lola_pcm_hw = {
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |