2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 21:54:06 +08:00
linux-next/drivers/fpga
Alan Tull 9f368977b4 fpga: region: change api, add fpga_region_create/free
Add fpga_region_create/free API functions.

Change fpga_region_register to take FPGA region struct as the only
parameter.  Change fpga_region_unregister to return void.

  struct fpga_region *fpga_region_create(struct device *dev,
                        struct fpga_manager *mgr,
                        int (*get_bridges)(struct fpga_region *));
  void fpga_region_free(struct fpga_region *region);
  int fpga_region_register(struct fpga_region *region);
  void fpga_region_unregister(struct fpga_region *region);

Remove groups storage from struct fpga_region, it's not
needed.  Callers can just "region->dev.groups = groups;"
after calling fpga_region_create.

Update the drivers that call fpga_region_register with the new API.

Signed-off-by: Alan Tull <atull@kernel.org>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-25 18:23:56 +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: change api, add fpga_region_create/free 2018-05-25 18:23:56 +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: change api, add fpga_region_create/free 2018-05-25 18:23:56 +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