diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-05 17:47:25 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-05 18:14:34 +0300 |
commit | 1675bfc0fb040e421d15d1944dc578b76543c19f (patch) | |
tree | 274797f7d9be88cb47eb9234e5cda69726081962 /sound/pci/ac97/ac97_pcm.c | |
parent | bf82326fce53321c3f9088874dc12dcbd6d0ca06 (diff) | |
download | linux-1675bfc0fb040e421d15d1944dc578b76543c19f.tar.xz |
ALSA: ac97: More constifications
Apply const prefix to each possible place: the static tables for
registers and bits, the quirk tables, etc.
Just for minor optimization and no functional changes.
Link: https://lore.kernel.org/r/20200105144823.29547-11-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ac97/ac97_pcm.c')
-rw-r--r-- | sound/pci/ac97/ac97_pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ac97/ac97_pcm.c b/sound/pci/ac97/ac97_pcm.c index 1c23a0f90559..491de1a623cb 100644 --- a/sound/pci/ac97/ac97_pcm.c +++ b/sound/pci/ac97/ac97_pcm.c @@ -26,7 +26,7 @@ * PCM support */ -static unsigned char rate_reg_tables[2][4][9] = { +static const unsigned char rate_reg_tables[2][4][9] = { { /* standard rates */ { @@ -129,7 +129,7 @@ static unsigned char rate_reg_tables[2][4][9] = { }}; /* FIXME: more various mappings for ADC? */ -static unsigned char rate_cregs[9] = { +static const unsigned char rate_cregs[9] = { AC97_PCM_LR_ADC_RATE, /* 3 */ AC97_PCM_LR_ADC_RATE, /* 4 */ 0xff, /* 5 */ |