diff options
author | Alan Tull <atull@opensource.altera.com> | 2016-11-01 15:14:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-10 11:03:35 -0500 |
commit | 9dce0287a60d72656a787b075f1b9162ff3cb142 (patch) | |
tree | 7734048996d27f0b4daf0d5ab823ba014cee8c68 /include/linux/fpga/fpga-mgr.h | |
parent | 39a842e22c1bf3ec3dce36e01fe8ba8ee66c80c8 (diff) |
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 'include/linux/fpga/fpga-mgr.h')
-rw-r--r-- | include/linux/fpga/fpga-mgr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h index 0940bf45e2f2..957b5ac9428a 100644 --- a/include/linux/fpga/fpga-mgr.h +++ b/include/linux/fpga/fpga-mgr.h | |||
@@ -117,6 +117,8 @@ int fpga_mgr_firmware_load(struct fpga_manager *mgr, u32 flags, | |||
117 | 117 | ||
118 | struct fpga_manager *of_fpga_mgr_get(struct device_node *node); | 118 | struct fpga_manager *of_fpga_mgr_get(struct device_node *node); |
119 | 119 | ||
120 | struct fpga_manager *fpga_mgr_get(struct device *dev); | ||
121 | |||
120 | void fpga_mgr_put(struct fpga_manager *mgr); | 122 | void fpga_mgr_put(struct fpga_manager *mgr); |
121 | 123 | ||
122 | int fpga_mgr_register(struct device *dev, const char *name, | 124 | int fpga_mgr_register(struct device *dev, const char *name, |