PCI: dwc: Move config space capability search API
authorVidya Sagar <vidyas@nvidia.com>
Tue, 13 Aug 2019 11:36:18 +0000 (17:06 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 13 Aug 2019 14:49:43 +0000 (15:49 +0100)
commit7a6854f6874ff416afa6552706a0011418f07888
treef8eafa67550b865dcab24f61f56e28520595b302
parent3924bc2fd1b607faa5cb0bc0655e9853656de31a
PCI: dwc: Move config space capability search API

Move PCIe config space capability search API to common DesignWare file
as this can be used by both host and EP mode drivers.

Signed-off-by: Vidya Sagar <vidyaos@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
drivers/pci/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-designware.c
drivers/pci/controller/dwc/pcie-designware.h