]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
fpga: fpga-mgr: Add devm_fpga_mgr_register() API
authorMoritz Fischer <mdf@kernel.org>
Sun, 15 Nov 2020 19:51:18 +0000 (11:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Dec 2020 17:49:32 +0000 (18:49 +0100)
commit57d9352b6c651b090179f8b223b6681275c64a4f
tree41fdd92dba396c0b718c4b849eb1d8bc28f06395
parentcd5f82dbbad04418afca092e8c7c6250e6815554
fpga: fpga-mgr: Add devm_fpga_mgr_register() API

Add a devm_fpga_mgr_register() API that can be used to register a FPGA
Manager that was created using devm_fpga_mgr_create().

Introduce a struct fpga_mgr_devres that makes the devres
allocation a little bit more readable and gets reused for
devm_fpga_mgr_create() devm_fpga_mgr_register().

Reviewed-by: Tom Rix <trix@redhat.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Link: https://lore.kernel.org/r/20201115195127.284487-2-mdf@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/fpga-mgr.c
include/linux/fpga/fpga-mgr.h