summaryrefslogtreecommitdiff
path: root/sound/usb/mixer_us16x08.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_us16x08.h
parent1aeb1c7f281ea7b372d5801fda119df73b1be98c (diff)
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_us16x08.h')
-rw-r--r--sound/usb/mixer_us16x08.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/mixer_us16x08.h b/sound/usb/mixer_us16x08.h
index 56ff16c0698f..7b8583dd3b07 100644
--- a/sound/usb/mixer_us16x08.h
+++ b/sound/usb/mixer_us16x08.h
@@ -108,7 +108,7 @@ struct snd_us16x08_meter_store {
};
struct snd_us16x08_control_params {
- struct snd_kcontrol_new *kcontrol_new;
+ const struct snd_kcontrol_new *kcontrol_new;
int control_id;
int type;
int num_channels;