diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-05 15:47:42 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-05 16:14:50 +0100 |
commit | ccfacf2b2ee49962452b8d7bd104047d681f0555 (patch) | |
tree | 46636c60b0e8d3d1479c838be8bf86cb7fe09474 /sound/pci/nm256/nm256.c | |
parent | ALSA: bcd2000: More constifications (diff) | |
download | linux-ccfacf2b2ee49962452b8d7bd104047d681f0555.tar.xz linux-ccfacf2b2ee49962452b8d7bd104047d681f0555.zip |
ALSA: nm256: More constifications
Apply const prefix to the static tables coefs and init registers.
Just for minor optimization and no functional changes.
Link: https://lore.kernel.org/r/20200105144823.29547-28-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/nm256/nm256.c')
-rw-r--r-- | sound/pci/nm256/nm256.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 25275a98e950..1726f2959ae8 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c @@ -299,7 +299,7 @@ snd_nm256_writel(struct nm256 *chip, int offset, u32 val) } static inline void -snd_nm256_write_buffer(struct nm256 *chip, void *src, int offset, int size) +snd_nm256_write_buffer(struct nm256 *chip, const void *src, int offset, int size) { offset -= chip->buffer_start; #ifdef CONFIG_SND_DEBUG @@ -1179,7 +1179,7 @@ struct initialValues { unsigned short value; }; -static struct initialValues nm256_ac97_init_val[] = +static const struct initialValues nm256_ac97_init_val[] = { { AC97_MASTER, 0x8000 }, { AC97_HEADPHONE, 0x8000 }, |