Use symbolic constants for PCI subsystem probing in flashrom.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Index: flashrom.c =================================================================== --- flashrom.c (Revision 3393) +++ flashrom.c (Arbeitskopie) @@ -74,8 +74,8 @@
for (temp = pacc->devices; temp; temp = temp->next) if (pci_filter_match(&filter, temp)) { - if ((card_vendor == pci_read_word(temp, 0x2C)) && - (card_device == pci_read_word(temp, 0x2E))) + if ((card_vendor == pci_read_word(temp, PCI_SUBSYSTEM_VENDOR_ID)) && + (card_device == pci_read_word(temp, PCI_SUBSYSTEM_ID))) return temp; }