projects
/
GitHub
/
LineageOS
/
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:
688ed20
)
ALSA: usb: make snd_pcm_hardware const
author
Bhumika Goyal
<bhumirks@gmail.com>
Thu, 17 Aug 2017 09:15:59 +0000
(14:45 +0530)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 17 Aug 2017 10:44:23 +0000
(12:44 +0200)
Make this const as it is 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>
sound/usb/pcm.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/pcm.c
b/sound/usb/pcm.c
index 9aa5b18554812a949503375e23764b3d926a0f2d..a4f3390608d5605f721e9fef38203350cf4214bf 100644
(file)
--- a/
sound/usb/pcm.c
+++ b/
sound/usb/pcm.c
@@
-857,7
+857,7
@@
static int snd_usb_pcm_prepare(struct snd_pcm_substream *substream)
return ret;
}
-static struct snd_pcm_hardware snd_usb_hardware =
+static
const
struct snd_pcm_hardware snd_usb_hardware =
{
.info = SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |