summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 08:16:25 -0400
committerTakashi Iwai <tiwai@suse.de>2017-06-09 04:42:47 -0400
commitbfa516a109ae77dae34b69f36d09b8f9d329384b (patch)
tree7b4a27e15998a2aaebacbc4553a784c211ca201e /sound/isa
parent21709121fb734715b4c4819aae36aad50cc88fd7 (diff)
ALSA: gus: 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>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/gus/gus_pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/gus/gus_pcm.c b/sound/isa/gus/gus_pcm.c
index b9f6dcbef889..6b3da01a93b7 100644
--- a/sound/isa/gus/gus_pcm.c
+++ b/sound/isa/gus/gus_pcm.c
@@ -562,14 +562,14 @@ static snd_pcm_uframes_t snd_gf1_pcm_playback_pointer(struct snd_pcm_substream *
562 return pos; 562 return pos;
563} 563}
564 564
565static struct snd_ratnum clock = { 565static const struct snd_ratnum clock = {
566 .num = 9878400/16, 566 .num = 9878400/16,
567 .den_min = 2, 567 .den_min = 2,
568 .den_max = 257, 568 .den_max = 257,
569 .den_step = 1, 569 .den_step = 1,
570}; 570};
571 571
572static struct snd_pcm_hw_constraint_ratnums hw_constraints_clocks = { 572static const struct snd_pcm_hw_constraint_ratnums hw_constraints_clocks = {
573 .nrats = 1, 573 .nrats = 1,
574 .rats = &clock, 574 .rats = &clock,
575}; 575};