projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83fdb6f
)
ALSA: cs4281: More constification
author
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 14:48:16 +0000
(15:48 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 15:15:10 +0000
(16:15 +0100)
Apply const prefix to the static register table.
Just for minor optimization and no functional changes.
Link:
https://lore.kernel.org/r/20200105144823.29547-62-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/cs4281.c
patch
|
blob
|
history
diff --git
a/sound/pci/cs4281.c
b/sound/pci/cs4281.c
index dc89ef906c9b1e4e73560ce84c07dc1ca0aee607..94d2a6a466a8ceb94a98866a8da49697c49380e3 100644
(file)
--- a/
sound/pci/cs4281.c
+++ b/
sound/pci/cs4281.c
@@
-1939,7
+1939,7
@@
static void snd_cs4281_remove(struct pci_dev *pci)
*/
#ifdef CONFIG_PM_SLEEP
-static int saved_regs[SUSPEND_REGISTERS] = {
+static
const
int saved_regs[SUSPEND_REGISTERS] = {
BA0_JSCTL,
BA0_GPIOR,
BA0_SSCR,