Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: atmel: Constify snd_ac97_bus_ops definitions

Now snd_ac97_bus() takes the const ops pointer, so we can define the
snd_ac97_bus_ops locally as const as well for further optimization.

There should be no functional changes by this patch.

Link: https://lore.kernel.org/r/20200103081714.9560-26-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+1 -1
+1 -1
sound/atmel/ac97c.c
··· 702 702 struct atmel_ac97c *chip; 703 703 struct resource *regs; 704 704 struct clk *pclk; 705 - static struct snd_ac97_bus_ops ops = { 705 + static const struct snd_ac97_bus_ops ops = { 706 706 .write = atmel_ac97c_write, 707 707 .read = atmel_ac97c_read, 708 708 };