OSDN Git Service

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)
commit630211a17055bafd21fb83ae8c0002b2e214ebb2
treeb6505fc0be470f286b39bd73e6057b790d70b70a
parent6489d3b00398f02457eea566d4a99698c68cc89f
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