projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10aab1a
)
ALSA: bcd2000: More constifications
author
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 14:47:41 +0000
(15:47 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 15:14:49 +0000
(16:14 +0100)
Apply const prefix to the static tables for command and verbs.
Just for minor optimization and no functional changes.
Link:
https://lore.kernel.org/r/20200105144823.29547-27-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/bcd2000/bcd2000.c
patch
|
blob
|
history
diff --git
a/sound/usb/bcd2000/bcd2000.c
b/sound/usb/bcd2000/bcd2000.c
index 6e3175826faf75b87313a711b3ecd955bf322c7d..010976d9ceb25fbc5b09552783dbc0a3c0e00451 100644
(file)
--- a/
sound/usb/bcd2000/bcd2000.c
+++ b/
sound/usb/bcd2000/bcd2000.c
@@
-25,9
+25,9
@@
static const struct usb_device_id id_table[] = {
{ },
};
-static unsigned char device_cmd_prefix[] = {0x03, 0x00};
+static
const
unsigned char device_cmd_prefix[] = {0x03, 0x00};
-static unsigned char bcd2000_init_sequence[] = {
+static
const
unsigned char bcd2000_init_sequence[] = {
0x07, 0x00, 0x00, 0x00, 0x78, 0x48, 0x1c, 0x81,
0xc4, 0x00, 0x00, 0x00, 0x5e, 0x53, 0x4a, 0xf7,
0x18, 0xfa, 0x11, 0xff, 0x6c, 0xf3, 0x90, 0xff,