projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7103e4a
)
ALSA: fm801: More constification
author
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 14:48:19 +0000
(15:48 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 15:15:12 +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-65-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/fm801.c
patch
|
blob
|
history
diff --git
a/sound/pci/fm801.c
b/sound/pci/fm801.c
index 40dfad74f8e1dbc92de895bd06fea7ba25feaed2..181ebafa550a215801cf5374def35ef6693f429e 100644
(file)
--- a/
sound/pci/fm801.c
+++ b/
sound/pci/fm801.c
@@
-1360,7
+1360,7
@@
static void snd_card_fm801_remove(struct pci_dev *pci)
}
#ifdef CONFIG_PM_SLEEP
-static unsigned char saved_regs[] = {
+static
const
unsigned char saved_regs[] = {
FM801_PCM_VOL, FM801_I2S_VOL, FM801_FM_VOL, FM801_REC_SRC,
FM801_PLY_CTRL, FM801_PLY_COUNT, FM801_PLY_BUF1, FM801_PLY_BUF2,
FM801_CAP_CTRL, FM801_CAP_COUNT, FM801_CAP_BUF1, FM801_CAP_BUF2,