ALSA: i2c: 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-35-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@ -318,7 +318,7 @@ static int snd_ak4114_spdif_qget(struct snd_kcontrol *kcontrol,
|
||||
}
|
||||
|
||||
/* Don't forget to change AK4114_CONTROLS define!!! */
|
||||
static struct snd_kcontrol_new snd_ak4114_iec958_controls[] = {
|
||||
static const struct snd_kcontrol_new snd_ak4114_iec958_controls[] = {
|
||||
{
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_PCM,
|
||||
.name = "IEC958 Parity Errors",
|
||||
|
Reference in New Issue
Block a user