OSDN Git Service

fpga: add method to get fpga manager from device
authorAlan Tull <atull@opensource.altera.com>
Tue, 1 Nov 2016 19:14:23 +0000 (14:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 16:03:35 +0000 (17:03 +0100)
commit9dce0287a60d72656a787b075f1b9162ff3cb142
tree7734048996d27f0b4daf0d5ab823ba014cee8c68
parent39a842e22c1bf3ec3dce36e01fe8ba8ee66c80c8
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>
Documentation/fpga/fpga-mgr.txt
drivers/fpga/fpga-mgr.c
include/linux/fpga/fpga-mgr.h