aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/pci/ice1712/maya44.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 14:20:52 +0200
committerTakashi Iwai <tiwai@suse.de>2017-06-09 10:42:53 +0200
commit965f19bed24d240c845401015e42ad5cb0cca00c (patch)
treee9452c2233f24b8849d6a4c627d11fe6f51853f0 /sound/pci/ice1712/maya44.c
parentALSA: ice1712: Constify hw_constraints (diff)
downloadwireguard-linux-965f19bed24d240c845401015e42ad5cb0cca00c.tar.xz
wireguard-linux-965f19bed24d240c845401015e42ad5cb0cca00c.zip
ALSA: ice1724: 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/ice1712/maya44.c')
-rw-r--r--sound/pci/ice1712/maya44.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ice1712/maya44.c b/sound/pci/ice1712/maya44.c
index 7de25c4807fd..0e30419f6bbd 100644
--- a/sound/pci/ice1712/maya44.c
+++ b/sound/pci/ice1712/maya44.c
@@ -661,12 +661,12 @@ static void set_rate(struct snd_ice1712 *ice, unsigned int rate)
* supported sample rates (to override the default one)
*/
-static unsigned int rates[] = {
+static const unsigned int rates[] = {
32000, 44100, 48000, 64000, 88200, 96000, 176400, 192000
};
/* playback rates: 32..192 kHz */
-static struct snd_pcm_hw_constraint_list dac_rates = {
+static const struct snd_pcm_hw_constraint_list dac_rates = {
.count = ARRAY_SIZE(rates),
.list = rates,
.mask = 0