aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers/opl3/opl3_drums.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-05 15:47:57 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-05 16:14:59 +0100
commite3de2a406ef525302e8a0805a753af13db26c844 (patch)
tree2eec733f228e34a2344576fb480e17178a1ec2bb /sound/drivers/opl3/opl3_drums.c
parentALSA: rawmidi: More constification (diff)
downloadlinux-dev-e3de2a406ef525302e8a0805a753af13db26c844.tar.xz
linux-dev-e3de2a406ef525302e8a0805a753af13db26c844.zip
ALSA: opl3: More constifications
Apply const prefix to the static tables for drum, volume and notes. Just for minor optimization and no functional changes. Link: https://lore.kernel.org/r/20200105144823.29547-43-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/opl3/opl3_drums.c')
-rw-r--r--sound/drivers/opl3/opl3_drums.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/opl3/opl3_drums.c b/sound/drivers/opl3/opl3_drums.c
index 318cd8a2ee3a..ccc49f39404d 100644
--- a/sound/drivers/opl3/opl3_drums.c
+++ b/sound/drivers/opl3/opl3_drums.c
@@ -7,7 +7,7 @@
#include "opl3_voice.h"
-static char snd_opl3_drum_table[47] =
+static const char snd_opl3_drum_table[47] =
{
OPL3_BASSDRUM_ON, OPL3_BASSDRUM_ON, OPL3_HIHAT_ON, /* 35 - 37 */
OPL3_SNAREDRUM_ON, OPL3_HIHAT_ON, OPL3_SNAREDRUM_ON, /* 38 - 40 */