]> asedeno.scripts.mit.edu Git - linux.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)
commit35ace5e8410e41df8719ee9fee49312655efa26a
treec02ed1899ec157db1d388c9b061a32c0dc4a7ccd
parentfdd1f6fd328ff2e3723fe2a5c94378ef6f217edc
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