ALSA: ac97: Treat snd_ac97_bus_ops as const
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Jan 2020 08:16:38 +0000 (09:16 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Jan 2020 08:24:08 +0000 (09:24 +0100)
commit19260818a9747768b09c1c1f10b4125b4d00595e
tree507e3c28cdadc37f040d0c50e2636116e54c752d
parent5ff16a3d48ef58be8fd93035ae9272d4cc990c49
ALSA: ac97: Treat snd_ac97_bus_ops as const

This is a preliminary patch to allow const for snd_ac97_bus_ops
definitions in each driver's code.  The ops reference is read-only,
hence it can be declared as const for further optimization.

There should be no functional changes by this patch.

Link: https://lore.kernel.org/r/20200103081714.9560-23-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/ac97_codec.h
sound/ac97_bus.c
sound/pci/ac97/ac97_codec.c