diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:16:53 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 11:24:28 +0300 |
commit | b4e5e70775546480035e156b40040e5d0d4264d1 (patch) | |
tree | a09b88a21989aa000448973c1e08f82e429d88f9 /sound/pci/ak4531_codec.c | |
parent | 35ace5e8410e41df8719ee9fee49312655efa26a (diff) | |
download | linux-b4e5e70775546480035e156b40040e5d0d4264d1.tar.xz |
ALSA: pci: 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-38-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ak4531_codec.c')
-rw-r--r-- | sound/pci/ak4531_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ak4531_codec.c b/sound/pci/ak4531_codec.c index fbf9a93a8053..c00c65726a34 100644 --- a/sound/pci/ak4531_codec.c +++ b/sound/pci/ak4531_codec.c @@ -255,7 +255,7 @@ static const DECLARE_TLV_DB_SCALE(db_scale_master, -6200, 200, 0); static const DECLARE_TLV_DB_SCALE(db_scale_mono, -2800, 400, 0); static const DECLARE_TLV_DB_SCALE(db_scale_input, -5000, 200, 0); -static struct snd_kcontrol_new snd_ak4531_controls[] = { +static const struct snd_kcontrol_new snd_ak4531_controls[] = { AK4531_DOUBLE_TLV("Master Playback Switch", 0, AK4531_LMASTER, AK4531_RMASTER, 7, 7, 1, 1, |