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>
This commit is contained in:
parent
3f2bdc45f3
commit
a7f8009df4
1 changed files with 2 additions and 3 deletions
|
@ -836,10 +836,9 @@ static irqreturn_t snd_rme32_interrupt(int irq, void *dev_id)
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int period_bytes[] = { RME32_BLOCK_SIZE };
|
static const unsigned int period_bytes[] = { RME32_BLOCK_SIZE };
|
||||||
|
|
||||||
|
static const struct snd_pcm_hw_constraint_list hw_constraints_period_bytes = {
|
||||||
static struct snd_pcm_hw_constraint_list hw_constraints_period_bytes = {
|
|
||||||
.count = ARRAY_SIZE(period_bytes),
|
.count = ARRAY_SIZE(period_bytes),
|
||||||
.list = period_bytes,
|
.list = period_bytes,
|
||||||
.mask = 0
|
.mask = 0
|
||||||
|
|
Loading…
Reference in a new issue