fpga: fpga-mgr: make write_complete() op optional
authorTom Rix <trix@redhat.com>
Fri, 25 Jun 2021 19:51:43 +0000 (12:51 -0700)
committerMoritz Fischer <mdf@kernel.org>
Sat, 24 Jul 2021 22:10:30 +0000 (15:10 -0700)
commit72d935020ea81c0092c23b580352fe1310505c28
tree8d129de0b66a3d02b7ed8c57ac76cbbfe98258e7
parent2e8438b754abcf13f2306237bd0bfe6e7dcb379a
fpga: fpga-mgr: make write_complete() op optional

An FPGA manager should not be required to provide a
write_complete function if there is nothing.  Move
the op check to the existing wrapper.
Default to success and remove noop function.

[mdf@kernel.org: Reworded message]
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
drivers/fpga/fpga-mgr.c
drivers/fpga/zynqmp-fpga.c