]> asedeno.scripts.mit.edu Git - linux.git/commit
fpga: dfl: add dfl_fpga_check_port_id function.
authorWu Hao <hao.wu@intel.com>
Sat, 30 Jun 2018 00:53:18 +0000 (08:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jul 2018 11:55:45 +0000 (13:55 +0200)
commitd06b004b99c960828523e581a3b7d109dfc1329b
tree8d71c06019550d35982d92b25f032a1f7ca57ffe
parent6e8fd6e493bfca83021cc6a8fd86d7f69bd14fc6
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 <hao.wu@intel.com>
Acked-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/dfl.c
drivers/fpga/dfl.h