aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/intel8x0m.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 14:21:31 +0200
committerTakashi Iwai <tiwai@suse.de>2017-06-09 10:42:53 +0200
commit0f470ce622230b7ebfb88ec8db8676e278867046 (patch)
tree2fcd3312728f08cd257d966bf7c47c7caa843121 /sound/pci/intel8x0m.c
parentALSA: ice1724: Constify hw_constraints (diff)
downloadlinux-dev-0f470ce622230b7ebfb88ec8db8676e278867046.tar.xz
linux-dev-0f470ce622230b7ebfb88ec8db8676e278867046.zip
ALSA: intel8x0: 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/pci/intel8x0m.c')
-rw-r--r--sound/pci/intel8x0m.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c
index 1bc98c867133..18ff668ce7a5 100644
--- a/sound/pci/intel8x0m.c
+++ b/sound/pci/intel8x0m.c
@@ -635,8 +635,8 @@ static struct snd_pcm_hardware snd_intel8x0m_stream =
static int snd_intel8x0m_pcm_open(struct snd_pcm_substream *substream, struct ichdev *ichdev)
{
- static unsigned int rates[] = { 8000, 9600, 12000, 16000 };
- static struct snd_pcm_hw_constraint_list hw_constraints_rates = {
+ static const unsigned int rates[] = { 8000, 9600, 12000, 16000 };
+ static const struct snd_pcm_hw_constraint_list hw_constraints_rates = {
.count = ARRAY_SIZE(rates),
.list = rates,
.mask = 0,