diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-07 14:17:39 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-09 10:42:49 +0200 |
commit | c15ec07bafbe00b82b7a2e26102c8e41e9b4626d (patch) | |
tree | a94ac0b6d69e5425c5142dda3a1fa0017d2c0b7b /sound/pci/atiixp_modem.c | |
parent | ALSA: ali5451: Constify hw_constraints (diff) | |
download | linux-c15ec07bafbe00b82b7a2e26102c8e41e9b4626d.tar.xz linux-c15ec07bafbe00b82b7a2e26102c8e41e9b4626d.zip |
ALSA: atiixp: 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/atiixp_modem.c')
-rw-r--r-- | sound/pci/atiixp_modem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index 40152feef1e7..52e0ea7b9b80 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c @@ -860,8 +860,8 @@ static int snd_atiixp_pcm_open(struct snd_pcm_substream *substream, struct atiixp_modem *chip = snd_pcm_substream_chip(substream); struct snd_pcm_runtime *runtime = substream->runtime; int err; - 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, |