summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 08:15:49 -0400
committerTakashi Iwai <tiwai@suse.de>2017-06-09 04:42:47 -0400
commit4ea2bb7311deab401d01877f15c75e0803ac6257 (patch)
tree19178890d0859a99db8ab73a4f1fb111535e0ad9 /sound/isa
parent0adaf3bea166d21dfd420b8628ca74adf15d75f8 (diff)
ALSA: es1688: 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/es1688/es1688_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/es1688/es1688_lib.c b/sound/isa/es1688/es1688_lib.c
index 81cf26fa28d6..5d3df96c5e5b 100644
--- a/sound/isa/es1688/es1688_lib.c
+++ b/sound/isa/es1688/es1688_lib.c
@@ -290,7 +290,7 @@ static int snd_es1688_init(struct snd_es1688 * chip, int enable)
290 290
291 */ 291 */
292 292
293static struct snd_ratnum clocks[2] = { 293static const struct snd_ratnum clocks[2] = {
294 { 294 {
295 .num = 795444, 295 .num = 795444,
296 .den_min = 1, 296 .den_min = 1,
@@ -305,7 +305,7 @@ static struct snd_ratnum clocks[2] = {
305 } 305 }
306}; 306};
307 307
308static struct snd_pcm_hw_constraint_ratnums hw_constraints_clocks = { 308static const struct snd_pcm_hw_constraint_ratnums hw_constraints_clocks = {
309 .nrats = 2, 309 .nrats = 2,
310 .rats = clocks, 310 .rats = clocks,
311}; 311};