fpga: dfl-pci: Use pci_find_vsec_capability() to simplify the code
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Wed, 2 Aug 2023 08:07:26 +0000 (16:07 +0800)
committerXu Yilun <yilun.xu@intel.com>
Mon, 7 Aug 2023 10:21:40 +0000 (18:21 +0800)
commit8607d9c1bd57da0a2d5f8ab2ec32b6ef7d85e66a
treeb83b974108bd5bb08bab492c131016fd3f3b6d47
parent3969f6458f783d2b4b8b15bef1eeab674eaa34bd
fpga: dfl-pci: Use pci_find_vsec_capability() to simplify the code

PCI core add pci_find_vsec_capability() to query VSEC. We can use that
core API to simplify the code.

Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20230802080726.178194-1-wangxiongfeng2@huawei.com
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
drivers/fpga/dfl-pci.c