aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/mixer.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 09:16:57 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-03 09:24:34 +0100
commit195727e8b6a896d898b048e44fdf7ea52d36bd7e (patch)
tree460195870919ceddca2ca25e6c8c1752100bd6a1 /sound/usb/mixer.h
parentALSA: spi: Constify snd_kcontrol_new items (diff)
downloadlinux-195727e8b6a896d898b048e44fdf7ea52d36bd7e.tar.xz
linux-195727e8b6a896d898b048e44fdf7ea52d36bd7e.zip
ALSA: usb: 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-42-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer.h')
-rw-r--r--sound/usb/mixer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/mixer.h b/sound/usb/mixer.h
index 37e1b234c802..65d6d08c96f5 100644
--- a/sound/usb/mixer.h
+++ b/sound/usb/mixer.h
@@ -116,6 +116,6 @@ int snd_usb_get_cur_mix_value(struct usb_mixer_elem_info *cval,
extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl);
-extern struct snd_kcontrol_new *snd_usb_feature_unit_ctl;
+extern const struct snd_kcontrol_new *snd_usb_feature_unit_ctl;
#endif /* __USBMIXER_H */