diff options
| author | Tom Rix <[email protected]> | 2021-06-25 19:51:46 +0000 |
|---|---|---|
| committer | Moritz Fischer <[email protected]> | 2021-07-24 22:10:31 +0000 |
| commit | b02a40713db95ebd8f72151b0fea8080d9f74c27 (patch) | |
| tree | 03f2053a8e68225b35793f8c9c37e40df16d1289 /drivers/fpga/stratix10-soc.c | |
| parent | fpga: fpga-mgr: wrap the status() op (diff) | |
| download | kernel-b02a40713db95ebd8f72151b0fea8080d9f74c27.tar.gz kernel-b02a40713db95ebd8f72151b0fea8080d9f74c27.zip | |
fpga: fpga-mgr: wrap the state() op
An FPGA manager should not be required to provide a state() op.
Add a wrapper consistent with the other op wrappers.
Move op check to wrapper.
Default to FPGA_MGR_STATE_UNKNOWN, what noop state() ops use.
Remove unneeded noop state() ops
[[email protected]: Reworded first line]
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Moritz Fischer <[email protected]>
Diffstat (limited to 'drivers/fpga/stratix10-soc.c')
| -rw-r--r-- | drivers/fpga/stratix10-soc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c index a2cea500f7cc..047fd7f23706 100644 --- a/drivers/fpga/stratix10-soc.c +++ b/drivers/fpga/stratix10-soc.c @@ -388,13 +388,7 @@ static int s10_ops_write_complete(struct fpga_manager *mgr, return ret; } -static enum fpga_mgr_states s10_ops_state(struct fpga_manager *mgr) -{ - return FPGA_MGR_STATE_UNKNOWN; -} - static const struct fpga_manager_ops s10_ops = { - .state = s10_ops_state, .write_init = s10_ops_write_init, .write = s10_ops_write, .write_complete = s10_ops_write_complete, |
