projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f200ce
)
ALSA: arm: More constification
author
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 14:48:11 +0000
(15:48 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 15:15:07 +0000
(16:15 +0100)
Apply const prefix to the static channel list table.
Just for minor optimization and no functional changes.
Link:
https://lore.kernel.org/r/20200105144823.29547-57-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/arm/aaci.c
patch
|
blob
|
history
diff --git
a/sound/arm/aaci.c
b/sound/arm/aaci.c
index d663bd7adae69fe1f016fbb044fd48d1de327dff..a0996c47e58fee5b72da40163162ab895770758a 100644
(file)
--- a/
sound/arm/aaci.c
+++ b/
sound/arm/aaci.c
@@
-380,7
+380,7
@@
static const struct snd_pcm_hardware aaci_hw_info = {
static int aaci_rule_channels(struct snd_pcm_hw_params *p,
struct snd_pcm_hw_rule *rule)
{
- static unsigned int channel_list[] = { 2, 4, 6 };
+ static
const
unsigned int channel_list[] = { 2, 4, 6 };
struct aaci *aaci = rule->private;
unsigned int mask = 1 << 0, slots;