projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0476b9
)
ALSA: ca0106: Constify snd_ca0106_category_str items
author
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Jan 2020 08:17:02 +0000
(09:17 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Jan 2020 08:24:37 +0000
(09:24 +0100)
snd_ca0106_con_category array is read-only and can be marked as const.
There should be no functional changes by this patch.
Link:
https://lore.kernel.org/r/20200103081714.9560-47-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ca0106/ca0106_proc.c
patch
|
blob
|
history
diff --git
a/sound/pci/ca0106/ca0106_proc.c
b/sound/pci/ca0106/ca0106_proc.c
index 15272c9ca4d5826eac924e673445903a4f53fa83..c99603e137e5fd69eac1756becb01dda3871d2af 100644
(file)
--- a/
sound/pci/ca0106/ca0106_proc.c
+++ b/
sound/pci/ca0106/ca0106_proc.c
@@
-66,7
+66,7
@@
struct snd_ca0106_category_str {
const char *name;
};
-static struct snd_ca0106_category_str snd_ca0106_con_category[] = {
+static
const
struct snd_ca0106_category_str snd_ca0106_con_category[] = {
{ IEC958_AES1_CON_DAT, "DAT" },
{ IEC958_AES1_CON_VCR, "VCR" },
{ IEC958_AES1_CON_MICROPHONE, "microphone" },