aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_si3054.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 14:20:07 +0200
committerTakashi Iwai <tiwai@suse.de>2017-06-09 10:42:52 +0200
commit50c697adfb7770a28081f73e7f9f6ddc5b55cfc5 (patch)
treeb3a21c0de990cd251ab22f0abba5c1a6400e0cb9 /sound/pci/hda/patch_si3054.c
parentALSA: es1938: Constify hw_constraints (diff)
downloadlinux-dev-50c697adfb7770a28081f73e7f9f6ddc5b55cfc5.tar.xz
linux-dev-50c697adfb7770a28081f73e7f9f6ddc5b55cfc5.zip
ALSA: hda: 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/hda/patch_si3054.c')
-rw-r--r--sound/pci/hda/patch_si3054.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_si3054.c b/sound/pci/hda/patch_si3054.c
index ffda38c45509..f63acb1b965c 100644
--- a/sound/pci/hda/patch_si3054.c
+++ b/sound/pci/hda/patch_si3054.c
@@ -169,8 +169,8 @@ static int si3054_pcm_open(struct hda_pcm_stream *hinfo,
struct hda_codec *codec,
struct snd_pcm_substream *substream)
{
- static unsigned int rates[] = { 8000, 9600, 16000 };
- static struct snd_pcm_hw_constraint_list hw_constraints_rates = {
+ static const unsigned int rates[] = { 8000, 9600, 16000 };
+ static const struct snd_pcm_hw_constraint_list hw_constraints_rates = {
.count = ARRAY_SIZE(rates),
.list = rates,
.mask = 0,