summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-07-13 11:22:03 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2011-07-13 11:22:03 +0000
commitf352673297b93fe703f759c5069787100c575718 (patch)
tree3ec0dd1d91f4c723e0a61832e01f569fce341e01 /programmer.h
parentcf4feacdcd1256b1a9a377ada242daa5681b7a83 (diff)
downloadflashrom-f352673297b93fe703f759c5069787100c575718.zip
flashrom-f352673297b93fe703f759c5069787100c575718.tar.gz
Change "class" parameter name to "devclass" to avoid C++ issues
In C++ "class" is a reserved keyword, and as we'll want to use libflashrom from C++ code at some point, let's make sure it doesn't cause issues. Other places in the code already used "devclass" anyway, so it also increases consistency and readability a bit. Corresponding to flashrom svn r1371. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/programmer.h b/programmer.h
index cd82dcb..6a28dbe 100644
--- a/programmer.h
+++ b/programmer.h
@@ -289,7 +289,7 @@ extern int superio_count;
#endif
#if NEED_PCI == 1
struct pci_dev *pci_dev_find_filter(struct pci_filter filter);
-struct pci_dev *pci_dev_find_vendorclass(uint16_t vendor, uint16_t class);
+struct pci_dev *pci_dev_find_vendorclass(uint16_t vendor, uint16_t devclass);
struct pci_dev *pci_dev_find(uint16_t vendor, uint16_t device);
struct pci_dev *pci_card_find(uint16_t vendor, uint16_t device,
uint16_t card_vendor, uint16_t card_device);
OpenPOWER on IntegriCloud