diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-07-13 11:22:03 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-07-13 11:22:03 +0000 |
commit | 24c35e458da6cd59ba01d83cf07ac94daace2f6c (patch) | |
tree | 3ec0dd1d91f4c723e0a61832e01f569fce341e01 /internal.c | |
parent | 269de3533ac58de85bf874afcbc862d73e1944c7 (diff) | |
download | ast2050-flashrom-24c35e458da6cd59ba01d83cf07ac94daace2f6c.zip ast2050-flashrom-24c35e458da6cd59ba01d83cf07ac94daace2f6c.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 'internal.c')
-rw-r--r-- | internal.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |