diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:16:50 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:24:24 +0300 |
commit | 0da2c47a951c27f1be34cb9221d77b0ed2db6cee (patch) | |
tree | b1f4052dd361aeb6b02a4e4d380200a7bc58957a /sound/i2c/other/ak4113.c | |
parent | 2eccd408037449ac6c1ceba1d74bd10c67dc13d7 (diff) | |
download | linux-0da2c47a951c27f1be34cb9221d77b0ed2db6cee.tar.xz |
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>
Diffstat (limited to 'sound/i2c/other/ak4113.c')
-rw-r--r-- | sound/i2c/other/ak4113.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/i2c/other/ak4113.c b/sound/i2c/other/ak4113.c index 2700a8470388..e7213092eb4f 100644 --- a/sound/i2c/other/ak4113.c +++ b/sound/i2c/other/ak4113.c @@ -349,7 +349,7 @@ static int snd_ak4113_spdif_qget(struct snd_kcontrol *kcontrol, } /* Don't forget to change AK4113_CONTROLS define!!! */ -static struct snd_kcontrol_new snd_ak4113_iec958_controls[] = { +static const struct snd_kcontrol_new snd_ak4113_iec958_controls[] = { { .iface = SNDRV_CTL_ELEM_IFACE_PCM, .name = "IEC958 Parity Errors", |