diff options
| author | Takashi Iwai <tiwai@suse.de> | 2017-06-07 14:18:01 +0200 | 
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2017-06-09 10:42:49 +0200 | 
| commit | 2e5eb6b745315c2c12f970929d410be920ae18bb (patch) | |
| tree | 2eff49922b205ce12d6f935ae3ef27eae8f27a59 /sound/pci/au88x0 | |
| parent | c15ec07bafbe00b82b7a2e26102c8e41e9b4626d (diff) | |
| download | linux-2e5eb6b745315c2c12f970929d410be920ae18bb.tar.bz2 | |
ALSA: au88x0: 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/au88x0')
| -rw-r--r-- | sound/pci/au88x0/au88x0_pcm.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/sound/pci/au88x0/au88x0_pcm.c b/sound/pci/au88x0/au88x0_pcm.c index 335979a753fe..1aa97012451d 100644 --- a/sound/pci/au88x0/au88x0_pcm.c +++ b/sound/pci/au88x0/au88x0_pcm.c @@ -112,11 +112,11 @@ static struct snd_pcm_hardware snd_vortex_playback_hw_wt = {  };  #endif  #ifdef CHIP_AU8830 -static unsigned int au8830_channels[3] = { +static const unsigned int au8830_channels[3] = {  	1, 2, 4,  }; -static struct snd_pcm_hw_constraint_list hw_constraints_au8830_channels = { +static const struct snd_pcm_hw_constraint_list hw_constraints_au8830_channels = {  	.count = ARRAY_SIZE(au8830_channels),  	.list = au8830_channels,  	.mask = 0, |