summaryrefslogtreecommitdiffstats
path: root/sound/drivers/vx/vx_cmd.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-05 15:47:22 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-05 16:14:30 +0100
commitc09482455ca586539802282380f59f54a1febf16 (patch)
tree3206b05b312439747bf605cb17c7a533b5cdad5e /sound/drivers/vx/vx_cmd.c
parent731922a5939e653ce501b7d72bfe8fbe79717abf (diff)
downloadlinux-stable-c09482455ca586539802282380f59f54a1febf16.tar.gz
linux-stable-c09482455ca586539802282380f59f54a1febf16.tar.bz2
linux-stable-c09482455ca586539802282380f59f54a1febf16.zip
ALSA: vx: More constifications
Apply const prefix to every possible place: the static tables for DSP commands, the string tables, and register/offset tables. Just for minor optimization and no functional changes. Link: https://lore.kernel.org/r/20200105144823.29547-8-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/vx/vx_cmd.c')
-rw-r--r--sound/drivers/vx/vx_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/vx/vx_cmd.c b/sound/drivers/vx/vx_cmd.c
index 77ae59aef4e0..b0970a04883e 100644
--- a/sound/drivers/vx/vx_cmd.c
+++ b/sound/drivers/vx/vx_cmd.c
@@ -15,7 +15,7 @@
/*
* Array of DSP commands
*/
-static struct vx_cmd_info vx_dsp_cmds[] = {
+static const struct vx_cmd_info vx_dsp_cmds[] = {
[CMD_VERSION] = { 0x010000, 2, RMH_SSIZE_FIXED, 1 },
[CMD_SUPPORTED] = { 0x020000, 1, RMH_SSIZE_FIXED, 2 },
[CMD_TEST_IT] = { 0x040000, 1, RMH_SSIZE_FIXED, 1 },