summaryrefslogtreecommitdiff
path: root/Documentation/fpga/fpga-mgr.txt
diff options
context:
space:
mode:
authorAlan Tull <atull@opensource.altera.com>2016-11-01 22:14:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-10 19:03:35 +0300
commit9dce0287a60d72656a787b075f1b9162ff3cb142 (patch)
tree7734048996d27f0b4daf0d5ab823ba014cee8c68 /Documentation/fpga/fpga-mgr.txt
parent39a842e22c1bf3ec3dce36e01fe8ba8ee66c80c8 (diff)
downloadlinux-9dce0287a60d72656a787b075f1b9162ff3cb142.tar.xz
fpga: add method to get fpga manager from device
The intent is to provide a non-DT method of getting ahold of a FPGA manager to do some FPGA programming. This patch refactors of_fpga_mgr_get() to reuse most of it while adding a new method fpga_mgr_get() for getting a pointer to a fpga manager struct, given the device. Signed-off-by: Alan Tull <atull@opensource.altera.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/fpga/fpga-mgr.txt')
-rw-r--r--Documentation/fpga/fpga-mgr.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/fpga/fpga-mgr.txt b/Documentation/fpga/fpga-mgr.txt
index ce3e84fa9023..d056d691e8fd 100644
--- a/Documentation/fpga/fpga-mgr.txt
+++ b/Documentation/fpga/fpga-mgr.txt
@@ -38,11 +38,13 @@ To get/put a reference to a FPGA manager:
-----------------------------------------
struct fpga_manager *of_fpga_mgr_get(struct device_node *node);
+ struct fpga_manager *fpga_mgr_get(struct device *dev);
+
+Given a DT node or device, get an exclusive reference to a FPGA manager.
void fpga_mgr_put(struct fpga_manager *mgr);
-Given a DT node, get an exclusive reference to a FPGA manager or release
-the reference.
+Release the reference.
To register or unregister the low level FPGA-specific driver: