summaryrefslogtreecommitdiffstats
path: root/sound/drivers/aloop.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 09:16:49 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-03 09:24:23 +0100
commit2eccd408037449ac6c1ceba1d74bd10c67dc13d7 (patch)
tree7861e49b5ac26074bd0c9351a0d2a2fc89bd5a59 /sound/drivers/aloop.c
parentdde5199c988b16426cf9a4e0df4b7ae06790471e (diff)
downloadlinux-2eccd408037449ac6c1ceba1d74bd10c67dc13d7.tar.gz
linux-2eccd408037449ac6c1ceba1d74bd10c67dc13d7.tar.bz2
linux-2eccd408037449ac6c1ceba1d74bd10c67dc13d7.zip
ALSA: drivers: 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. Constify snd_kcontrol_new items There should be no functional changes by this patch. Link: https://lore.kernel.org/r/20200103081714.9560-34-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/aloop.c')
-rw-r--r--sound/drivers/aloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c
index 13abb3d0893f..d78a27271d6d 100644
--- a/sound/drivers/aloop.c
+++ b/sound/drivers/aloop.c
@@ -1496,7 +1496,7 @@ static int loopback_channels_get(struct snd_kcontrol *kcontrol,
return 0;
}
-static struct snd_kcontrol_new loopback_controls[] = {
+static const struct snd_kcontrol_new loopback_controls[] = {
{
.iface = SNDRV_CTL_ELEM_IFACE_PCM,
.name = "PCM Rate Shift 100000",