summaryrefslogtreecommitdiffstats
path: root/internal.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2021-11-13 17:59:18 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2022-03-22 05:53:36 +0000
commit1b1066e2d5db21167394e0d40dfe5a0d370c8852 (patch)
tree1b1e56e349609a5faaaa53cdb34a85a404eff89b /internal.c
parent855b8983319f24835e72669469669f270fffa1db (diff)
downloadflashrom-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 'internal.c')
-rw-r--r--internal.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/internal.c b/internal.c
index cf9faf66f..4049ef152 100644
--- a/internal.c
+++ b/internal.c
@@ -34,17 +34,6 @@ int force_boardmismatch = 0;
enum chipbustype internal_buses_supported = BUS_NONE;
-struct pci_dev *pci_dev_find(uint16_t vendor, uint16_t device)
-{
- struct pci_filter filter;
-
- pci_filter_init(NULL, &filter);
- filter.vendor = vendor;
- filter.device = device;
-
- return pcidev_scandev(&filter, NULL);
-}
-
#if defined(__i386__) || defined(__x86_64__)
void probe_superio(void)
{