projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbc57b2
)
ALSA: sparc: Constify hw_constraints
author
Takashi Iwai
<tiwai@suse.de>
Wed, 7 Jun 2017 12:23:22 +0000
(14:23 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 9 Jun 2017 08:42:56 +0000
(10:42 +0200)
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>
sound/sparc/cs4231.c
patch
|
blob
|
history
diff --git
a/sound/sparc/cs4231.c
b/sound/sparc/cs4231.c
index
30bdc97
..
3d7d425
100644
(file)
--- a/
sound/sparc/cs4231.c
+++ b/
sound/sparc/cs4231.c
@@
-200,12
+200,12
@@
static unsigned char freq_bits[14] = {
/* 48000 */ 0x0C | CS4231_XTAL1
};
-static unsigned int rates[14] = {
+static
const
unsigned int rates[14] = {
5510, 6620, 8000, 9600, 11025, 16000, 18900, 22050,
27042, 32000, 33075, 37800, 44100, 48000
};
-static struct snd_pcm_hw_constraint_list hw_constraints_rates = {
+static
const
struct snd_pcm_hw_constraint_list hw_constraints_rates = {
.count = ARRAY_SIZE(rates),
.list = rates,
};