projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a875286
)
ALSA: ymfpci: Use register macro in place of integer literal
author
Tasos Sahanidis
<tasos@tasossah.com>
Wed, 29 Mar 2023 04:39:18 +0000
(07:39 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 29 Mar 2023 06:29:04 +0000
(08:29 +0200)
The macro for said register already exists, so just use it, to make the
code more readable.
Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Link:
https://lore.kernel.org/r/20230329043918.179352-1-tasos@tasossah.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ymfpci/ymfpci_main.c
patch
|
blob
|
history
diff --git
a/sound/pci/ymfpci/ymfpci_main.c
b/sound/pci/ymfpci/ymfpci_main.c
index 92a0ac40fd0286ebfddc3672e7bbec24900dfd5d..5f1a201754fadc1549bcd0f8ee7d805c7011d87f 100644
(file)
--- a/
sound/pci/ymfpci/ymfpci_main.c
+++ b/
sound/pci/ymfpci/ymfpci_main.c
@@
-2214,7
+2214,7
@@
static void snd_ymfpci_free(struct snd_card *card)
snd_ymfpci_free_gameport(chip);
- pci_write_config_word(chip->pci,
0x40
, chip->old_legacy_ctrl);
+ pci_write_config_word(chip->pci,
PCIR_DSXG_LEGACY
, chip->old_legacy_ctrl);
release_firmware(chip->dsp_microcode);
release_firmware(chip->controller_microcode);