diff options
author | Edward O'Callaghan <quasisec@google.com> | 2021-11-13 17:59:18 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-03-22 05:53:36 +0000 |
commit | 1b1066e2d5db21167394e0d40dfe5a0d370c8852 (patch) | |
tree | 1b1e56e349609a5faaaa53cdb34a85a404eff89b /chipset_enable.c | |
parent | 855b8983319f24835e72669469669f270fffa1db (diff) | |
download | flashrom-1b1066e2d5db21167394e0d40dfe5a0d370c8852.tar.gz flashrom-1b1066e2d5db21167394e0d40dfe5a0d370c8852.tar.bz2 flashrom-1b1066e2d5db21167394e0d40dfe5a0d370c8852.zip |
pcidev: Move pci_dev_find() from internal to canonical place
Also rename to `pcidev_find()` in fitting with pcidev.c helpers.
BUG=b:220950271
TEST=```sudo ./flashrom -p internal -r /tmp/bios
<snip>
Found Programmer flash chip "Opaque flash chip" (16384 kB, Programmer-specific) mapped at physical address 0x0000000000000000.
Reading flash... done.
```
Change-Id: Ie21f87699481a84398ca4450b3f03548f0528191
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/59280
Reviewed-by: Thomas Heijligen <src@posteo.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r-- | chipset_enable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index ac9377be6..1cb170088 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -1117,7 +1117,7 @@ static int enable_flash_vt823x(struct pci_dev *dev, const char *name) static int enable_flash_vt_vx(struct pci_dev *dev, const char *name) { - struct pci_dev *south_north = pci_dev_find(0x1106, 0xa353); + struct pci_dev *south_north = pcidev_find(0x1106, 0xa353); if (south_north == NULL) { msg_perr("Could not find South-North Module Interface Control device!\n"); return ERROR_FATAL; @@ -1557,7 +1557,7 @@ static int enable_flash_sb400(struct pci_dev *dev, const char *name) struct pci_dev *smbusdev; /* Look for the SMBus device. */ - smbusdev = pci_dev_find(0x1002, 0x4372); + smbusdev = pcidev_find(0x1002, 0x4372); if (!smbusdev) { msg_perr("ERROR: SMBus device not found. Aborting.\n"); @@ -2163,7 +2163,7 @@ int chipset_flash_enable(void) /* Now let's try to find the chipset we have... */ for (i = 0; chipset_enables[i].vendor_name != NULL; i++) { - dev = pci_dev_find(chipset_enables[i].vendor_id, + dev = pcidev_find(chipset_enables[i].vendor_id, chipset_enables[i].device_id); if (!dev) continue; |