Martijn Berger has uploaded this change for review.
pcidev: Fix typo
Fix typo
Change-Id: If70834715a51dea4111ba56e85df0680ed25c7a4
Signed-off-by: Martijn Berger <martijn.berger@gmail.com>
---
M pcidev.c
M programmer.h
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/66/39966/1
diff --git a/pcidev.c b/pcidev.c
index 973acde..38b9380 100644
--- a/pcidev.c
+++ b/pcidev.c
@@ -30,7 +30,7 @@
TYPE_UNKNOWN
};
-int pci_bar_nuber_from_offset(int offset)
+int pci_bar_number_from_offset(int offset)
{
switch (offset) {
case PCI_BASE_ADDRESS_0:
@@ -63,7 +63,7 @@
headertype = pci_read_byte(dev, PCI_HEADER_TYPE) & 0x7f;
msg_pspew("PCI header type 0x%02x\n", headertype);
- bar_number = pci_bar_nuber_from_offset(bar);
+ bar_number = pci_bar_number_from_offset(bar);
if (PCI_LIB_VERSION >= 0x030500 && bar_number > -1) {
addr = dev->base_addr[bar_number];
diff --git a/programmer.h b/programmer.h
index 5d4c1d7..42f646b 100644
--- a/programmer.h
+++ b/programmer.h
@@ -190,7 +190,7 @@
// FIXME: This needs to be local, not global(?)
extern struct pci_access *pacc;
int pci_init_common(void);
-int pci_bar_nuber_from_offset(int offset);
+int pci_bar_number_from_offset(int offset);
uintptr_t pcidev_readbar(struct pci_dev *dev, int bar);
struct pci_dev *pcidev_init(const struct dev_entry *devs, int bar);
/* rpci_write_* are reversible writes. The original PCI config space register
To view, visit change 39966. To unsubscribe, or for help writing mail filters, visit settings.