diff options
| author | Wu Hao <[email protected]> | 2018-06-30 00:53:18 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-07-15 11:55:45 +0000 |
| commit | d06b004b99c960828523e581a3b7d109dfc1329b (patch) | |
| tree | 8d71c06019550d35982d92b25f032a1f7ca57ffe /drivers/fpga/dfl.h | |
| parent | fpga: dfl: add dfl_fpga_port_ops support. (diff) | |
| download | kernel-d06b004b99c960828523e581a3b7d109dfc1329b.tar.gz kernel-d06b004b99c960828523e581a3b7d109dfc1329b.zip | |
fpga: dfl: add dfl_fpga_check_port_id function.
This patch adds one common function in DFL framework. It uses
port_ops get_id callback to get port id and compare it with given
value. This function could be used as match function of the
dfl_fpga_cdev_find_port function.
Signed-off-by: Wu Hao <[email protected]>
Acked-by: Alan Tull <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/dfl.h')
| -rw-r--r-- | drivers/fpga/dfl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/fpga/dfl.h b/drivers/fpga/dfl.h index 654e0f694a5f..a8b869e9e5b7 100644 --- a/drivers/fpga/dfl.h +++ b/drivers/fpga/dfl.h @@ -151,6 +151,7 @@ void dfl_fpga_port_ops_add(struct dfl_fpga_port_ops *ops); void dfl_fpga_port_ops_del(struct dfl_fpga_port_ops *ops); struct dfl_fpga_port_ops *dfl_fpga_port_ops_get(struct platform_device *pdev); void dfl_fpga_port_ops_put(struct dfl_fpga_port_ops *ops); +int dfl_fpga_check_port_id(struct platform_device *pdev, void *pport_id); /** * struct dfl_feature_driver - sub feature's driver |
