diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:16:54 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:24:32 +0100 |
commit | c031b0cc77a1bef980eb360e317a6bbd54211326 (patch) | |
tree | 894d5e1d335f0c64d4013e2a57b3d66755389f3f /sound/ppc/tumbler.c | |
parent | b4e5e70775546480035e156b40040e5d0d4264d1 (diff) | |
download | lwn-c031b0cc77a1bef980eb360e317a6bbd54211326.tar.gz lwn-c031b0cc77a1bef980eb360e317a6bbd54211326.zip |
ALSA: ppc: 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-39-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/ppc/tumbler.c')
-rw-r--r-- | sound/ppc/tumbler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c index 31bab6af645f..a5843035d718 100644 --- a/sound/ppc/tumbler.c +++ b/sound/ppc/tumbler.c @@ -826,7 +826,7 @@ static int snapper_put_capture_source(struct snd_kcontrol *kcontrol, /* */ -static struct snd_kcontrol_new tumbler_mixers[] = { +static const struct snd_kcontrol_new tumbler_mixers[] = { { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = "Master Playback Volume", .info = tumbler_info_master_volume, @@ -850,7 +850,7 @@ static struct snd_kcontrol_new tumbler_mixers[] = { }, }; -static struct snd_kcontrol_new snapper_mixers[] = { +static const struct snd_kcontrol_new snapper_mixers[] = { { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = "Master Playback Volume", .info = tumbler_info_master_volume, |