]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Constify snd_kcontrol_new items
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Jan 2020 08:16:52 +0000 (09:16 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Jan 2020 08:24:27 +0000 (09:24 +0100)
commitdb26e6d39435e81b6b23b130735bd9e582b211d0
treec02ed1899ec157db1d388c9b061a32c0dc4a7ccd
parent3ac825dc4c46d9249a9b6fb3a0f31fb6a9c468dd
ALSA: hda: Constify snd_kcontrol_new items

Most of snd_kcontrol_new definitions are read-only and passed as-is.
Let's declare them as const for further optimization.

There should be no functional changes by this patch.

Link: https://lore.kernel.org/r/20200103081714.9560-37-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/patch_sigmatel.c