summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 14:15:49 +0200
committerTakashi Iwai <tiwai@suse.de>2017-06-09 10:42:47 +0200
commit4ea2bb7311deab401d01877f15c75e0803ac6257 (patch)
tree19178890d0859a99db8ab73a4f1fb111535e0ad9 /sound/isa
parent0adaf3bea166d21dfd420b8628ca74adf15d75f8 (diff)
downloadop-kernel-dev-4ea2bb7311deab401d01877f15c75e0803ac6257.zip
op-kernel-dev-4ea2bb7311deab401d01877f15c75e0803ac6257.tar.gz
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 81cf26f..5d3df96 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)
*/
-static struct snd_ratnum clocks[2] = {
+static const struct snd_ratnum clocks[2] = {
{
.num = 795444,
.den_min = 1,
@@ -305,7 +305,7 @@ static struct snd_ratnum clocks[2] = {
}
};
-static struct snd_pcm_hw_constraint_ratnums hw_constraints_clocks = {
+static const struct snd_pcm_hw_constraint_ratnums hw_constraints_clocks = {
.nrats = 2,
.rats = clocks,
};
OpenPOWER on IntegriCloud