ata: ahci-pci: Replace magic constant by macro
authorPali Rohár <pali@kernel.org>
Sun, 4 Dec 2022 12:31:08 +0000 (13:31 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 8 Dec 2022 15:46:01 +0000 (10:46 -0500)
Replace 0x1b21 by macro PCI_VENDOR_ID_ASMEDIA with the same value.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/ata/ahci-pci.c

index 797e0d5..5356b9d 100644 (file)
@@ -37,7 +37,7 @@ U_BOOT_DRIVER(ahci_pci) = {
 
 static struct pci_device_id ahci_pci_supported[] = {
        { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_SATA_AHCI, ~0) },
-       { PCI_DEVICE(0x1b21, 0x0611) },
+       { PCI_DEVICE(PCI_VENDOR_ID_ASMEDIA, 0x0611) },
        { PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x6121) },
        { PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x6145) },
        {},