linux/drivers/fpga
Alan Tull 371cd1b1fd fpga: bridge: change api, don't use drvdata
Change fpga_bridge_register to not set drvdata.  This is to support
the case where a PCIe device can have more than one bridge.

Add API functions to create/free the fpga bridge struct. Change
fpga_bridge_register/unregister to take FPGA bridge struct as
the only parameter.

  struct fpga_bridge
  *fpga_bridge_create(struct device *dev, const char *name,
                      const struct fpga_bridge_ops *br_ops,
                      void *priv);
  void fpga_bridge_free(struct fpga_bridge *br);
  int fpga_bridge_register(struct fpga_bridge *br);
  void fpga_bridge_unregister(struct fpga_bridge *br);

Update the drivers that call fpga_bridge_register with the new API.

Signed-off-by: Alan Tull <atull@kernel.org>
Reported-by: Jiuyue Ma <majiuyue@huawei.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-25 18:23:55 +02:00
..
altera-cvp.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
altera-fpga2sdram.c fpga: bridge: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
altera-freeze-bridge.c fpga: bridge: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
altera-hps2fpga.c fpga: bridge: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
altera-pr-ip-core-plat.c fpga pr ip: Platform driver for Altera Partial Reconfiguration IP. 2017-04-08 17:45:28 +02:00
altera-pr-ip-core.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
altera-ps-spi.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
fpga-bridge.c fpga: bridge: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
fpga-mgr.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
fpga-region.c fpga: region: don't use drvdata in common fpga code 2018-05-25 18:23:55 +02:00
ice40-spi.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
Kconfig fpga: lattice machxo2: Add Lattice MachXO2 support 2018-04-23 13:33:01 +02:00
machxo2-spi.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
Makefile fpga: lattice machxo2: Add Lattice MachXO2 support 2018-04-23 13:33:01 +02:00
of-fpga-region.c fpga: region: don't use drvdata in common fpga code 2018-05-25 18:23:55 +02:00
socfpga-a10.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
socfpga.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
ts73xx-fpga.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
xilinx-pr-decoupler.c fpga: bridge: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
xilinx-spi.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00
zynq-fpga.c fpga: manager: change api, don't use drvdata 2018-05-25 18:23:55 +02:00