Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b02ee560 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown
Browse files

ASoC: mediatek: Constify hw_constraints



snd_pcm_hw_constraint_list(), *_ratnums() and *_ratdens() receive the
const pointers.  Constify the corresponding static objects for better
hardening.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-By: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2ea659a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ static const struct snd_kcontrol_new mt2701_cs42448_controls[] = {

static const unsigned int mt2701_cs42448_sampling_rates[] = {48000};

static struct snd_pcm_hw_constraint_list mt2701_cs42448_constraints_rates = {
static const struct snd_pcm_hw_constraint_list mt2701_cs42448_constraints_rates = {
		.count = ARRAY_SIZE(mt2701_cs42448_sampling_rates),
		.list = mt2701_cs42448_sampling_rates,
		.mask = 0,