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:
4f8f04e
)
ALSA: pcxhr: make snd_pcm_hardware const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 12 Aug 2017 15:31:23 +0000
(21:01 +0530)
committer
Takashi Iwai
<tiwai@suse.de>
Sat, 12 Aug 2017 21:31:51 +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/pcxhr/pcxhr.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/pcxhr/pcxhr.c
b/sound/pci/pcxhr/pcxhr.c
index fa919f52e225a7a77418c8301f2d75b1fda41aff..e6f9aa67cc6f662bbd29c3d8d9b26109c95172b3 100644
(file)
--- a/
sound/pci/pcxhr/pcxhr.c
+++ b/
sound/pci/pcxhr/pcxhr.c
@@
-986,7
+986,7
@@
static int pcxhr_hw_free(struct snd_pcm_substream *subs)
/*
* CONFIGURATION SPACE for all pcms, mono pcm must update channels_max
*/
-static struct snd_pcm_hardware pcxhr_caps =
+static
const
struct snd_pcm_hardware pcxhr_caps =
{
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |