提交 4ea2bb73 编写于 作者: T Takashi Iwai

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: NTakashi Iwai <tiwai@suse.de>
上级 0adaf3be
...@@ -290,7 +290,7 @@ static int snd_es1688_init(struct snd_es1688 * chip, int enable) ...@@ -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, .num = 795444,
.den_min = 1, .den_min = 1,
...@@ -305,7 +305,7 @@ static struct snd_ratnum clocks[2] = { ...@@ -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, .nrats = 2,
.rats = clocks, .rats = clocks,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册