From 9b9e385c66e8c8c0a313c9b476d358fa180edfe5 Mon Sep 17 00:00:00 2001 From: uwe Date: Wed, 13 Jul 2011 11:22:03 +0000 Subject: 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. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1371 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- internal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal.c') diff --git a/internal.c b/internal.c index 32bfb3a..c59209e 100644 --- a/internal.c +++ b/internal.c @@ -35,7 +35,7 @@ struct pci_dev *pci_dev_find_filter(struct pci_filter filter) return NULL; } -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 *temp; struct pci_filter filter; @@ -48,7 +48,7 @@ struct pci_dev *pci_dev_find_vendorclass(uint16_t vendor, uint16_t class) if (pci_filter_match(&filter, temp)) { /* Read PCI class */ tmp2 = pci_read_word(temp, 0x0a); - if (tmp2 == class) + if (tmp2 == devclass) return temp; } -- cgit v1.2.1