Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de900b18 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: sonicvibes: 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: default avatarTakashi Iwai <tiwai@suse.de>
parent f9fee553
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -248,13 +248,13 @@ static const struct pci_device_id snd_sonic_ids[] = {


MODULE_DEVICE_TABLE(pci, snd_sonic_ids);
MODULE_DEVICE_TABLE(pci, snd_sonic_ids);


static struct snd_ratden sonicvibes_adc_clock = {
static const struct snd_ratden sonicvibes_adc_clock = {
	.num_min = 4000 * 65536,
	.num_min = 4000 * 65536,
	.num_max = 48000UL * 65536,
	.num_max = 48000UL * 65536,
	.num_step = 1,
	.num_step = 1,
	.den = 65536,
	.den = 65536,
};
};
static struct snd_pcm_hw_constraint_ratdens snd_sonicvibes_hw_constraints_adc_clock = {
static const struct snd_pcm_hw_constraint_ratdens snd_sonicvibes_hw_constraints_adc_clock = {
	.nrats = 1,
	.nrats = 1,
	.rats = &sonicvibes_adc_clock,
	.rats = &sonicvibes_adc_clock,
};
};