summaryrefslogtreecommitdiffstats
path: root/include/linux/pci-epf.h
diff options
context:
space:
mode:
authorKishon Vijay Abraham I2017-08-18 16:57:54 +0200
committerBjorn Helgaas2017-08-18 17:42:45 +0200
commitf01f969e25ecc6f88844bcdd63f1f27610418bbc (patch)
tree3f80650862027c54217dcb8aa90ebc415b890d0e /include/linux/pci-epf.h
parentPCI: endpoint: Use of_dma_configure() to set initial DMA mask (diff)
downloadkernel-qcow2-linux-f01f969e25ecc6f88844bcdd63f1f27610418bbc.tar.gz
kernel-qcow2-linux-f01f969e25ecc6f88844bcdd63f1f27610418bbc.tar.xz
kernel-qcow2-linux-f01f969e25ecc6f88844bcdd63f1f27610418bbc.zip
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>
Diffstat (limited to 'include/linux/pci-epf.h')
-rw-r--r--include/linux/pci-epf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci-epf.h b/include/linux/pci-epf.h
index 0d529cb90143..6ed63b5e106b 100644
--- a/include/linux/pci-epf.h
+++ b/include/linux/pci-epf.h
@@ -149,6 +149,8 @@ static inline void *epf_get_drvdata(struct pci_epf *epf)
return dev_get_drvdata(&epf->dev);
}
+const struct pci_epf_device_id *
+pci_epf_match_device(const struct pci_epf_device_id *id, struct pci_epf *epf);
struct pci_epf *pci_epf_create(const char *name);
void pci_epf_destroy(struct pci_epf *epf);
int __pci_epf_register_driver(struct pci_epf_driver *driver,