ALSA: atiixp: More constifications

Apply const prefix to the static register tables.

Just for minor optimization and no functional changes.

Link: https://lore.kernel.org/r/20200105144823.29547-34-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2020-01-05 15:47:48 +01:00
parent 9ca7a0c979
commit 066c044b05
2 changed files with 2 additions and 2 deletions

View File

@ -1407,7 +1407,7 @@ static int snd_atiixp_mixer_new(struct atiixp *chip, int clock,
.write = snd_atiixp_ac97_write, .write = snd_atiixp_ac97_write,
.read = snd_atiixp_ac97_read, .read = snd_atiixp_ac97_read,
}; };
static unsigned int codec_skip[NUM_ATI_CODECS] = { static const unsigned int codec_skip[NUM_ATI_CODECS] = {
ATI_REG_ISR_CODEC0_NOT_READY, ATI_REG_ISR_CODEC0_NOT_READY,
ATI_REG_ISR_CODEC1_NOT_READY, ATI_REG_ISR_CODEC1_NOT_READY,
ATI_REG_ISR_CODEC2_NOT_READY, ATI_REG_ISR_CODEC2_NOT_READY,

View File

@ -1050,7 +1050,7 @@ static int snd_atiixp_mixer_new(struct atiixp_modem *chip, int clock)
.write = snd_atiixp_ac97_write, .write = snd_atiixp_ac97_write,
.read = snd_atiixp_ac97_read, .read = snd_atiixp_ac97_read,
}; };
static unsigned int codec_skip[NUM_ATI_CODECS] = { static const unsigned int codec_skip[NUM_ATI_CODECS] = {
ATI_REG_ISR_CODEC0_NOT_READY, ATI_REG_ISR_CODEC0_NOT_READY,
ATI_REG_ISR_CODEC1_NOT_READY, ATI_REG_ISR_CODEC1_NOT_READY,
ATI_REG_ISR_CODEC2_NOT_READY, ATI_REG_ISR_CODEC2_NOT_READY,