diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-07 14:22:02 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-09 10:42:53 +0200 |
commit | a7f8009df4078fa28eb26f6caac89da60fd94a16 (patch) | |
tree | 51e8002d5f6a886da33e392ad822bb484df1bfbb /sound/pci | |
parent | 3f2bdc45f36df349d9f9984252b612c57a8b1a73 (diff) | |
download | op-kernel-dev-a7f8009df4078fa28eb26f6caac89da60fd94a16.zip op-kernel-dev-a7f8009df4078fa28eb26f6caac89da60fd94a16.tar.gz |
ALSA: rme32: 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/rme32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index 67d48c8..e4cdef9 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c @@ -836,10 +836,9 @@ static irqreturn_t snd_rme32_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static unsigned int period_bytes[] = { RME32_BLOCK_SIZE }; +static const unsigned int period_bytes[] = { RME32_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 |