ata: ahci-pci: Replace magic constant by macro
PATCH 1/1 ata: ahci-pci: Replace magic constant by macro
Replace 0x1b21 by macro PCI_VENDOR_ID_ASMEDIA with the same value.
Signed-off-by Pali Rohár <[email protected]>
--- drivers/ata/ahci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/ahci-pci.c +1 -1
@@ -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
Quoted 7 lines · Pali Rohár
Replace
0x1b21by macroPCI_VENDOR_ID_ASMEDIAwith the same value.Signed-off-by Pali Rohár <[email protected]>--- drivers/ata/ahci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
Quoted 4 lines · Pali Rohár
Replace
0x1b21by macroPCI_VENDOR_ID_ASMEDIAwith the same value.Signed-off-by Pali Rohár <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom