diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-07 08:16:10 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-09 04:42:47 -0400 |
commit | 21709121fb734715b4c4819aae36aad50cc88fd7 (patch) | |
tree | 214c99d5c2054ca242b5a627632de98cb1d41440 /sound/isa | |
parent | 4ea2bb7311deab401d01877f15c75e0803ac6257 (diff) |
ALSA: es18xx: 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/es18xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 0cabe2b8974f..ae17a6584061 100644 --- a/sound/isa/es18xx.c +++ b/sound/isa/es18xx.c | |||
@@ -369,7 +369,7 @@ static int snd_es18xx_reset_fifo(struct snd_es18xx *chip) | |||
369 | return 0; | 369 | return 0; |
370 | } | 370 | } |
371 | 371 | ||
372 | static struct snd_ratnum new_clocks[2] = { | 372 | static const struct snd_ratnum new_clocks[2] = { |
373 | { | 373 | { |
374 | .num = 793800, | 374 | .num = 793800, |
375 | .den_min = 1, | 375 | .den_min = 1, |
@@ -384,12 +384,12 @@ static struct snd_ratnum new_clocks[2] = { | |||
384 | } | 384 | } |
385 | }; | 385 | }; |
386 | 386 | ||
387 | static struct snd_pcm_hw_constraint_ratnums new_hw_constraints_clocks = { | 387 | static const struct snd_pcm_hw_constraint_ratnums new_hw_constraints_clocks = { |
388 | .nrats = 2, | 388 | .nrats = 2, |
389 | .rats = new_clocks, | 389 | .rats = new_clocks, |
390 | }; | 390 | }; |
391 | 391 | ||
392 | static struct snd_ratnum old_clocks[2] = { | 392 | static const struct snd_ratnum old_clocks[2] = { |
393 | { | 393 | { |
394 | .num = 795444, | 394 | .num = 795444, |
395 | .den_min = 1, | 395 | .den_min = 1, |
@@ -404,7 +404,7 @@ static struct snd_ratnum old_clocks[2] = { | |||
404 | } | 404 | } |
405 | }; | 405 | }; |
406 | 406 | ||
407 | static struct snd_pcm_hw_constraint_ratnums old_hw_constraints_clocks = { | 407 | static const struct snd_pcm_hw_constraint_ratnums old_hw_constraints_clocks = { |
408 | .nrats = 2, | 408 | .nrats = 2, |
409 | .rats = old_clocks, | 409 | .rats = old_clocks, |
410 | }; | 410 | }; |