OSDN Git Service

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

An FPGA manager should not be required to provide a
write function. Move the op check to the wrapper.
Default to -EOPNOTSUP so its users will fail
gracefully.

[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