summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-05 15:48:10 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-05 16:15:07 +0100
commit2f200ce2919b231038f80dde4e7e7147c611242b (patch)
treeb8e4222c68f76746f0850cf654f017229ab2823a
parent26170691ffbb05f161d1ba21465497b4ba2502cd (diff)
downloadlinux-2f200ce2919b231038f80dde4e7e7147c611242b.tar.gz
linux-2f200ce2919b231038f80dde4e7e7147c611242b.tar.bz2
linux-2f200ce2919b231038f80dde4e7e7147c611242b.zip
ALSA: lx6464es: More constifications
Apply const prefix to the static tables for the DSP command and the peak map. Just for minor optimization and no functional changes. Link: https://lore.kernel.org/r/20200105144823.29547-56-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/lx6464es/lx_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/lx6464es/lx_core.c b/sound/pci/lx6464es/lx_core.c
index dd3a873777eb..f884f5a6a61c 100644
--- a/sound/pci/lx6464es/lx_core.c
+++ b/sound/pci/lx6464es/lx_core.c
@@ -161,7 +161,7 @@ struct dsp_cmd_info {
the number of status words (in addition to the return value)
*/
-static struct dsp_cmd_info dsp_commands[] =
+static const struct dsp_cmd_info dsp_commands[] =
{
{ (CMD_00_INFO_DEBUG << OPCODE_OFFSET) , 1 /*custom*/
, 1 , 0 /**/ , CMD_NAME("INFO_DEBUG") },
@@ -858,7 +858,7 @@ int lx_level_unmute(struct lx6464es *chip, int is_capture, int unmute)
return err;
}
-static u32 peak_map[] = {
+static const u32 peak_map[] = {
0x00000109, /* -90.308dB */
0x0000083B, /* -72.247dB */
0x000020C4, /* -60.205dB */