fpga: dfl: refactor cci_enumerate_feature_devs()
authorMatthew Gerlach <matthew.gerlach@linux.intel.com>
Thu, 7 Jan 2021 04:37:07 +0000 (20:37 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 14:21:27 +0000 (15:21 +0100)
commit3e265f836e9d62ccc4820157dc6a34d7685ba41d
tree7b5cabdbed4bc3c772f131b06364bb6f0fa983bd
parent4c5a6a7b71431f39bd80f6c3a14a429602a5555f
fpga: dfl: refactor cci_enumerate_feature_devs()

In preparation of looking for dfls based on a vendor specific pci
capability, move the code for the default method of finding the first
dfl at offset 0 of Bar 0 to its own function.

Acked-by: Wu Hao <hao.wu@intel.com>
Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Link: https://lore.kernel.org/r/20210107043714.991646-2-mdf@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/dfl-pci.c