]> git.baikalelectronics.ru Git - kernel.git/commit
fpga: fpga-mgr: wrap the write_sg() op
authorTom Rix <trix@redhat.com>
Fri, 25 Jun 2021 19:51:48 +0000 (12:51 -0700)
committerMoritz Fischer <mdf@kernel.org>
Sat, 24 Jul 2021 22:10:31 +0000 (15:10 -0700)
commit0305e3a4310750ce180218867d3abaa70b593c5e
treeb6505fc0be470f286b39bd73e6057b790d70b70a
parentd6bd836d4ed4ddf0f28fc797a05a9d2c10d08fb5
fpga: fpga-mgr: wrap the write_sg() op

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

[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