aboutsummaryrefslogtreecommitdiffstats
path: root/board_enable.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2021-11-13 17:56:20 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2022-03-22 05:52:27 +0000
commit855b8983319f24835e72669469669f270fffa1db (patch)
tree002e3e54b43a38cf55a279b2ca6238881a31f7b1 /board_enable.c
parentd69c30766e2ddcd8439b32b80b0d03f2ae0b9bc2 (diff)
downloadflashrom-855b8983319f24835e72669469669f270fffa1db.tar.gz
flashrom-855b8983319f24835e72669469669f270fffa1db.tar.bz2
flashrom-855b8983319f24835e72669469669f270fffa1db.zip
pcidev: Move pci_card_find() from internal to canonical place
Also rename to `pcidev_card_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: I026bfbecba114411728d4ad1ed8969b469fa7d2d Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/59279 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'board_enable.c')
-rw-r--r--board_enable.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/board_enable.c b/board_enable.c
index 0ac522e5..22db4928 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -2645,17 +2645,17 @@ static const struct board_match *board_match_pci_ids(enum board_match_phase phas
if (board->phase != phase)
continue;
- if (!pci_card_find(board->first_vendor, board->first_device,
- board->first_card_vendor,
- board->first_card_device))
+ if (!pcidev_card_find(board->first_vendor, board->first_device,
+ board->first_card_vendor,
+ board->first_card_device))
continue;
if (board->second_vendor) {
if (board->second_card_vendor) {
- if (!pci_card_find(board->second_vendor,
- board->second_device,
- board->second_card_vendor,
- board->second_card_device))
+ if (!pcidev_card_find(board->second_vendor,
+ board->second_device,
+ board->second_card_vendor,
+ board->second_card_device))
continue;
} else {
if (!pci_dev_find(board->second_vendor,