diff options
author | Tasos Sahanidis <tasos@tasossah.com> | 2023-03-29 07:39:18 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-03-29 09:29:04 +0300 |
commit | 2fa98a4283c165715e6d36f5cd3acbc6f3c029f2 (patch) | |
tree | c32f22244914799c94fe20520e421e70912a65db /sound/pci/ymfpci | |
parent | a8752868b74c0ce4491d0b62805fc99b0f6c3b15 (diff) | |
download | linux-2fa98a4283c165715e6d36f5cd3acbc6f3c029f2.tar.xz |
ALSA: ymfpci: Use register macro in place of integer literal
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>
Diffstat (limited to 'sound/pci/ymfpci')
-rw-r--r-- | sound/pci/ymfpci/ymfpci_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c index 92a0ac40fd02..5f1a201754fa 100644 --- 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); |