fpga: fpga-mgr: wrap the write_init() op
authorTom Rix <trix@redhat.com>
Fri, 25 Jun 2021 19:51:42 +0000 (12:51 -0700)
committerMoritz Fischer <mdf@kernel.org>
Sat, 24 Jul 2021 22:10:30 +0000 (15:10 -0700)
commit2e8438b754abcf13f2306237bd0bfe6e7dcb379a
treec50a451147b623c95c2c2afe1b906976b4c1889c
parent6f125e87184ea5f8ad677c2cc4a9c9c6e717554b
fpga: fpga-mgr: wrap the write_init() op

An FPGA manager should not be required to provide a
write_init() op if there is nothing for it do.
So add a wrapper and move the op checking.
Default to success.

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