diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-05 17:47:31 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-05 18:14:41 +0300 |
commit | f16a4e960ab3475d71df6f0d968c5393f3eca2aa (patch) | |
tree | aaf79e338533a194579346a2da22a431a5ca97ab /sound/pci/ice1712/vt1720_mobo.c | |
parent | bf6f3d74c9594c3a684620d3d7418a73ee659288 (diff) | |
download | linux-f16a4e960ab3475d71df6f0d968c5393f3eca2aa.tar.xz |
ALSA: ice1712: More constifications
Apply const prefix to each possible place: the EEPROM tables, the
static string arrays, the init verb tables, etc.
Just for minor optimization and no functional changes.
Link: https://lore.kernel.org/r/20200105144823.29547-17-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/vt1720_mobo.c')
-rw-r--r-- | sound/pci/ice1712/vt1720_mobo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ice1712/vt1720_mobo.c b/sound/pci/ice1712/vt1720_mobo.c index 3d240125a644..47470b07197c 100644 --- a/sound/pci/ice1712/vt1720_mobo.c +++ b/sound/pci/ice1712/vt1720_mobo.c @@ -39,7 +39,7 @@ static int k8x800_add_controls(struct snd_ice1712 *ice) /* EEPROM image */ -static unsigned char k8x800_eeprom[] = { +static const unsigned char k8x800_eeprom[] = { [ICE_EEP2_SYSCONF] = 0x01, /* clock 256, 1ADC, 2DACs */ [ICE_EEP2_ACLINK] = 0x02, /* ACLINK, packed */ [ICE_EEP2_I2S] = 0x00, /* - */ @@ -55,7 +55,7 @@ static unsigned char k8x800_eeprom[] = { [ICE_EEP2_GPIO_STATE2] = 0x00, /* - */ }; -static unsigned char sn25p_eeprom[] = { +static const unsigned char sn25p_eeprom[] = { [ICE_EEP2_SYSCONF] = 0x01, /* clock 256, 1ADC, 2DACs */ [ICE_EEP2_ACLINK] = 0x02, /* ACLINK, packed */ [ICE_EEP2_I2S] = 0x00, /* - */ |