aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers/vx/vx_mixer.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_mixer.c
parentALSA: seq: More constifications (diff)
downloadlinux-dev-c09482455ca586539802282380f59f54a1febf16.tar.xz
linux-dev-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 '')
-rw-r--r--sound/drivers/vx/vx_mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/vx/vx_mixer.c b/sound/drivers/vx/vx_mixer.c
index b17c67b14d59..13099f8c84d6 100644
--- a/sound/drivers/vx/vx_mixer.c
+++ b/sound/drivers/vx/vx_mixer.c
@@ -961,7 +961,7 @@ int snd_vx_mixer_new(struct vx_core *chip)
return err;
/* VU, peak, saturation meters */
for (c = 0; c < 2; c++) {
- static char *dir[2] = { "Output", "Input" };
+ static const char * const dir[2] = { "Output", "Input" };
for (i = 0; i < chip->hw->num_ins; i++) {
int val = (i * 2) | (c << 8);
if (c == 1) {