mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: Takashi Iwai <[email protected]> Acked-By: Matthias Brugger <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
2ea659a9ef
commit
b02ee56087
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue