mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
ASoC: intel: byt: 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: Takashi Iwai <tiwai@suse.de> Acked-By: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
a03bdaa565
commit
1ebb4d9dbf
@ -85,11 +85,11 @@ static int codec_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int rates_48000[] = {
|
static const unsigned int rates_48000[] = {
|
||||||
48000,
|
48000,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct snd_pcm_hw_constraint_list constraints_48000 = {
|
static const struct snd_pcm_hw_constraint_list constraints_48000 = {
|
||||||
.count = ARRAY_SIZE(rates_48000),
|
.count = ARRAY_SIZE(rates_48000),
|
||||||
.list = rates_48000,
|
.list = rates_48000,
|
||||||
};
|
};
|
||||||
|
@ -203,11 +203,11 @@ static int byt_rt5651_codec_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int rates_48000[] = {
|
static const unsigned int rates_48000[] = {
|
||||||
48000,
|
48000,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct snd_pcm_hw_constraint_list constraints_48000 = {
|
static const struct snd_pcm_hw_constraint_list constraints_48000 = {
|
||||||
.count = ARRAY_SIZE(rates_48000),
|
.count = ARRAY_SIZE(rates_48000),
|
||||||
.list = rates_48000,
|
.list = rates_48000,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user