提交 2e5eb6b7 编写于 作者: T Takashi Iwai

ALSA: au88x0: 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>
上级 c15ec07b
...@@ -112,11 +112,11 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_wt = { ...@@ -112,11 +112,11 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_wt = {
}; };
#endif #endif
#ifdef CHIP_AU8830 #ifdef CHIP_AU8830
static unsigned int au8830_channels[3] = { static const unsigned int au8830_channels[3] = {
1, 2, 4, 1, 2, 4,
}; };
static struct snd_pcm_hw_constraint_list hw_constraints_au8830_channels = { static const struct snd_pcm_hw_constraint_list hw_constraints_au8830_channels = {
.count = ARRAY_SIZE(au8830_channels), .count = ARRAY_SIZE(au8830_channels),
.list = au8830_channels, .list = au8830_channels,
.mask = 0, .mask = 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册