OSDN Git Service

fpga: fpga-mgr: wrap the status() op
authorTom Rix <trix@redhat.com>
Fri, 25 Jun 2021 19:51:45 +0000 (12:51 -0700)
committerMoritz Fischer <mdf@kernel.org>
Sat, 24 Jul 2021 22:10:31 +0000 (15:10 -0700)
commit6f9922711359d2092fb91036193dfed0d1bdf8b8
tree3399a191b3f305f3f475d2c512d493f48dd578c4
parent8ebab40fd8f1683140890a77fadf571db98686b8
fpga: fpga-mgr: wrap the status() op

An FPGA manager is not required to provide a status() op.
Add a wrapper consistent with the other op wrappers.
Move the op check to the wrapper.
Default to 0, no errors to report.

[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