aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/dfl.h
diff options
context:
space:
mode:
authorPeter Colberg <[email protected]>2024-11-20 01:10:25 +0000
committerXu Yilun <[email protected]>2024-12-18 14:28:48 +0000
commit0783f41b00502d29fd70c31e727671d4a94e92f6 (patch)
tree9cf6c79896ee6a3652ab1831f4da81099486f70a /drivers/fpga/dfl.h
parentfpga: dfl: refactor internal DFL APIs to take/return feature device data (diff)
downloadkernel-0783f41b00502d29fd70c31e727671d4a94e92f6.tar.gz
kernel-0783f41b00502d29fd70c31e727671d4a94e92f6.zip
fpga: dfl: factor out feature device registration
Add separate functions, feature_dev_{register,unregister}(), that wrap platform_device_add() and platform_device_unregister(), respectively. These are invoked once per feature device in this commit but will be reused in a subsequent commit to destroy and recreate the platform device when the corresponding port is released and reassigned. The function feature_dev_register() will be extended in subsequent commits to allocate the platform device, add resources and platform data, and finally add the platform device to the device hierarchy. Signed-off-by: Peter Colberg <[email protected]> Reviewed-by: Matthew Gerlach <[email protected]> Reviewed-by: Basheer Ahmed Muddebihal <[email protected]> Acked-by: Xu Yilun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Xu Yilun <[email protected]>
Diffstat (limited to 'drivers/fpga/dfl.h')
0 files changed, 0 insertions, 0 deletions