projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd6e031
)
ALSA: fm801: Constify snd_fm801_tea575x_gpios
author
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Jan 2020 08:17:12 +0000
(09:17 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Jan 2020 08:24:44 +0000
(09:24 +0100)
The snd_fm801_tea575x_gpios table is referred as read-only, hence it
can be declared as const gracefully.
There should be no functional changes by this patch.
Link:
https://lore.kernel.org/r/20200103081714.9560-57-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 4117a053eb184144c6f375dc0da4ba50cb59fd59..40dfad74f8e1dbc92de895bd06fea7ba25feaed2 100644
(file)
--- a/
sound/pci/fm801.c
+++ b/
sound/pci/fm801.c
@@
-724,7
+724,7
@@
struct snd_fm801_tea575x_gpio {
char *name;
};
-static struct snd_fm801_tea575x_gpio snd_fm801_tea575x_gpios[] = {
+static
const
struct snd_fm801_tea575x_gpio snd_fm801_tea575x_gpios[] = {
{ .data = 1, .clk = 3, .wren = 2, .most = 0, .name = "SF256-PCS" },
{ .data = 1, .clk = 0, .wren = 2, .most = 3, .name = "SF256-PCP" },
{ .data = 2, .clk = 0, .wren = 1, .most = 3, .name = "SF64-PCR" },