aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2017-06-08 23:37:24 +0200
committerMark Brown <[email protected]>2017-06-13 21:33:03 +0100
commitb02ee56087adae4819ce4d91c08d57403f71fd34 (patch)
treeafb8822a1be9642cf27a14b8d798ee159b30d546
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
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]>
-rw-r--r--sound/soc/mediatek/mt2701/mt2701-cs42448.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt2701/mt2701-cs42448.c b/sound/soc/mediatek/mt2701/mt2701-cs42448.c
index aa5b31b121e3..70f61d53fe05 100644
--- a/sound/soc/mediatek/mt2701/mt2701-cs42448.c
+++ b/sound/soc/mediatek/mt2701/mt2701-cs42448.c
@@ -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,