Show
Ignore:
Timestamp:
06/29/08 01:02:22 (5 months ago)
Author:
hailfinger
Message:

Use symbolic constants for PCI subsystem probing in flashrom.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>
Acked-by: Stefan Reinauer <stepan@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/util/flashrom/flashrom.c

    r3393 r3394  
    7575        for (temp = pacc->devices; temp; temp = temp->next) 
    7676                if (pci_filter_match(&filter, temp)) { 
    77                         if ((card_vendor == pci_read_word(temp, 0x2C)) && 
    78                             (card_device == pci_read_word(temp, 0x2E))) 
     77                        if ((card_vendor == pci_read_word(temp, PCI_SUBSYSTEM_VENDOR_ID)) && 
     78                            (card_device == pci_read_word(temp, PCI_SUBSYSTEM_ID))) 
    7979                                return temp; 
    8080                }