diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-07 14:22:10 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-09 10:42:54 +0200 |
commit | 84e7b99865329394177db0d2a506c22b1c02dea1 (patch) | |
tree | 18c38a8c8111dc7aba01ac7c91bb5a565bad57c8 /sound/pci | |
parent | a7f8009df4078fa28eb26f6caac89da60fd94a16 (diff) | |
download | op-kernel-dev-84e7b99865329394177db0d2a506c22b1c02dea1.zip op-kernel-dev-84e7b99865329394177db0d2a506c22b1c02dea1.tar.gz |
ALSA: rme96: 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')
-rw-r--r-- | sound/pci/rme96.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index 24f1349..2e19ba5 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c @@ -1163,9 +1163,9 @@ snd_rme96_interrupt(int irq, return IRQ_HANDLED; } -static unsigned int period_bytes[] = { RME96_SMALL_BLOCK_SIZE, RME96_LARGE_BLOCK_SIZE }; +static const unsigned int period_bytes[] = { RME96_SMALL_BLOCK_SIZE, RME96_LARGE_BLOCK_SIZE }; -static struct snd_pcm_hw_constraint_list hw_constraints_period_bytes = { +static const struct snd_pcm_hw_constraint_list hw_constraints_period_bytes = { .count = ARRAY_SIZE(period_bytes), .list = period_bytes, .mask = 0 |