PCI: endpoint: Add an API to get matching "pci_epf_device_id"
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 18 Aug 2017 14:57:54 +0000 (20:27 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 18 Aug 2017 15:42:45 +0000 (10:42 -0500)
commitf01f969e25ecc6f88844bcdd63f1f27610418bbc
tree3f80650862027c54217dcb8aa90ebc415b890d0e
parent64c1a02aecd599bd2d920a01e103235e483fbc89
PCI: endpoint: Add an API to get matching "pci_epf_device_id"

Add an API to get "pci_epf_device_id" matching the EPF name. This can be
used by the EPF driver to get the driver data corresponding to the EPF
device name.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
[bhelgaas: folded in "while" loop termination fix from Colin Ian King
<colin.king@canonical.com>]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/endpoint/pci-epf-core.c
include/linux/pci-epf.h