Skip to contentSkip to conversation

ata: ahci-pci: Replace magic constant by macro

PATCH In review Pali Rohár 3 participants 3 messages Dec 4, 2022 – Dec 8, 2022 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: ahci-pci: Replace magic constant by macro

Replace 0x1b21 by macro PCI_VENDOR_ID_ASMEDIA with the same value.

---
 drivers/ata/ahci-pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/ahci-pci.c +1 -1
index 797e0d570e88..5356b9d83d34 100644
@@ -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) },
 	{},
Signature · 1 line
2.20.1