summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 08:23:22 -0400
committerTakashi Iwai <tiwai@suse.de>2017-06-09 04:42:56 -0400
commit4e4b7eaa624d08433ab571920d50b6e14a70ab90 (patch)
treeeef67b93bd08405cec58828bef1c45c6038f759b
parentfbc57b2a3e74fd56581bc2acacade9eac22544bd (diff)
ALSA: sparc: 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>
-rw-r--r--sound/sparc/cs4231.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c
index 30bdc971883b..3d7d425fbd24 100644
--- a/sound/sparc/cs4231.c
+++ b/sound/sparc/cs4231.c
@@ -200,12 +200,12 @@ static unsigned char freq_bits[14] = {
200 /* 48000 */ 0x0C | CS4231_XTAL1 200 /* 48000 */ 0x0C | CS4231_XTAL1
201}; 201};
202 202
203static unsigned int rates[14] = { 203static const unsigned int rates[14] = {
204 5510, 6620, 8000, 9600, 11025, 16000, 18900, 22050, 204 5510, 6620, 8000, 9600, 11025, 16000, 18900, 22050,
205 27042, 32000, 33075, 37800, 44100, 48000 205 27042, 32000, 33075, 37800, 44100, 48000
206}; 206};
207 207
208static struct snd_pcm_hw_constraint_list hw_constraints_rates = { 208static const struct snd_pcm_hw_constraint_list hw_constraints_rates = {
209 .count = ARRAY_SIZE(rates), 209 .count = ARRAY_SIZE(rates),
210 .list = rates, 210 .list = rates,
211}; 211};