search.c (860dbce3d8dd90cb9e909c58fa79808766243651) search.c (418e3ea157efb0eb2c6dd412a8d5f052477c7f5a)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * PCI searching functions
4 *
5 * Copyright (C) 1993 -- 1997 Drew Eckhardt, Frederic Potter,
6 * David Mosberger-Tang
7 * Copyright (C) 1997 -- 2000 Martin Mares <mj@ucw.cz>
8 * Copyright (C) 2003 -- 2004 Greg Kroah-Hartman <greg@kroah.com>

--- 222 unchanged lines hidden (view full) ---

231 if (pci_domain_nr(dev->bus) == domain &&
232 (dev->bus->number == bus && dev->devfn == devfn))
233 return dev;
234 }
235 return NULL;
236}
237EXPORT_SYMBOL(pci_get_domain_bus_and_slot);
238
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * PCI searching functions
4 *
5 * Copyright (C) 1993 -- 1997 Drew Eckhardt, Frederic Potter,
6 * David Mosberger-Tang
7 * Copyright (C) 1997 -- 2000 Martin Mares <mj@ucw.cz>
8 * Copyright (C) 2003 -- 2004 Greg Kroah-Hartman <greg@kroah.com>

--- 222 unchanged lines hidden (view full) ---

231 if (pci_domain_nr(dev->bus) == domain &&
232 (dev->bus->number == bus && dev->devfn == devfn))
233 return dev;
234 }
235 return NULL;
236}
237EXPORT_SYMBOL(pci_get_domain_bus_and_slot);
238
239static int match_pci_dev_by_id(struct device *dev, void *data)
239static int match_pci_dev_by_id(struct device *dev, const void *data)
240{
241 struct pci_dev *pdev = to_pci_dev(dev);
240{
241 struct pci_dev *pdev = to_pci_dev(dev);
242 struct pci_device_id *id = data;
242 const struct pci_device_id *id = data;
243
244 if (pci_match_one_device(id, pdev))
245 return 1;
246 return 0;
247}
248
249/*
250 * pci_get_dev_by_id - begin or continue searching for a PCI device by id

--- 141 unchanged lines hidden ---
243
244 if (pci_match_one_device(id, pdev))
245 return 1;
246 return 0;
247}
248
249/*
250 * pci_get_dev_by_id - begin or continue searching for a PCI device by id

--- 141 unchanged lines hidden ---