fpga: dfl: factor out feature data creation from build_info_commit_dev()
authorPeter Colberg <peter.colberg@intel.com>
Wed, 20 Nov 2024 01:10:22 +0000 (20:10 -0500)
committerXu Yilun <yilun.xu@linux.intel.com>
Wed, 18 Dec 2024 14:28:45 +0000 (22:28 +0800)
commitfccfc01148d6f920c5fcf2c159ae375f2c98ec52
tree37918497ee0705951f40d5857cd2cf978923c3fe
parent7b34395a619cb79e85b8a0b99e620eb2cd6aaf19
fpga: dfl: factor out feature data creation from build_info_commit_dev()

Add a separate function, binfo_create_feature_dev_data(), which allocates
and populates the feature platform data, and call the function from
build_info_commit_dev(), which registers the feature platform device.

Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Reviewed-by: Basheer Ahmed Muddebihal <basheer.ahmed.muddebihal@linux.intel.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20241120011035.230574-7-peter.colberg@intel.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/dfl.c