Browse Source

drivers: fpga: Place API into iterable section

Add wrapper DEVICE_API macro to all fpga_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
pull/82357/head
Pieter De Gendt 7 months ago committed by Benjamin Cabé
parent
commit
0c75641c98
  1. 2
      drivers/fpga/fpga_altera_agilex_bridge.c
  2. 2
      drivers/fpga/fpga_eos_s3.c
  3. 2
      drivers/fpga/fpga_ice40_bitbang.c
  4. 2
      drivers/fpga/fpga_ice40_spi.c
  5. 2
      drivers/fpga/fpga_mpfs.c
  6. 2
      drivers/fpga/fpga_slg471x5.c
  7. 2
      drivers/fpga/fpga_zynqmp.c

2
drivers/fpga/fpga_altera_agilex_bridge.c

@ -465,7 +465,7 @@ static int altera_fpga_init(const struct device *dev) @@ -465,7 +465,7 @@ static int altera_fpga_init(const struct device *dev)
return 0;
}
static const struct fpga_driver_api altera_fpga_api = {
static DEVICE_API(fpga, altera_fpga_api) = {
.on = altera_fpga_on,
.off = altera_fpga_off,
};

2
drivers/fpga/fpga_eos_s3.c

@ -140,7 +140,7 @@ static int eos_s3_fpga_init(const struct device *dev) @@ -140,7 +140,7 @@ static int eos_s3_fpga_init(const struct device *dev)
static struct quickfeather_fpga_data fpga_data;
static const struct fpga_driver_api eos_s3_api = {
static DEVICE_API(fpga, eos_s3_api) = {
.reset = eos_s3_fpga_reset,
.load = eos_s3_fpga_load,
.get_status = eos_s3_fpga_get_status,

2
drivers/fpga/fpga_ice40_bitbang.c

@ -237,7 +237,7 @@ unlock: @@ -237,7 +237,7 @@ unlock:
return ret;
}
static const struct fpga_driver_api fpga_ice40_api = {
static DEVICE_API(fpga, fpga_ice40_api) = {
.get_status = fpga_ice40_get_status,
.reset = fpga_ice40_reset,
.load = fpga_ice40_load,

2
drivers/fpga/fpga_ice40_spi.c

@ -166,7 +166,7 @@ unlock: @@ -166,7 +166,7 @@ unlock:
return ret;
}
static const struct fpga_driver_api fpga_ice40_api = {
static DEVICE_API(fpga, fpga_ice40_api) = {
.get_status = fpga_ice40_get_status,
.reset = fpga_ice40_reset,
.load = fpga_ice40_load,

2
drivers/fpga/fpga_mpfs.c

@ -402,7 +402,7 @@ static struct mpfs_fpga_config fpga_config = { @@ -402,7 +402,7 @@ static struct mpfs_fpga_config fpga_config = {
.mailbox = DT_INST_REG_ADDR_BY_IDX(0, 2),
};
static const struct fpga_driver_api mpfs_fpga_api = {
static DEVICE_API(fpga, mpfs_fpga_api) = {
.reset = mpfs_fpga_reset,
.load = mpfs_fpga_load,
.get_info = mpfs_fpga_get_info,

2
drivers/fpga/fpga_slg471x5.c

@ -148,7 +148,7 @@ static int fpga_slg471x5_reset(const struct device *dev) @@ -148,7 +148,7 @@ static int fpga_slg471x5_reset(const struct device *dev)
return 0;
}
static const struct fpga_driver_api fpga_slg471x5_api = {
static DEVICE_API(fpga, fpga_slg471x5_api) = {
.get_status = fpga_slg471x5_get_status,
.reset = fpga_slg471x5_reset,
.load = fpga_slg471x5_load,

2
drivers/fpga/fpga_zynqmp.c

@ -315,7 +315,7 @@ static int zynqmp_fpga_init(const struct device *dev) @@ -315,7 +315,7 @@ static int zynqmp_fpga_init(const struct device *dev)
static struct zynqmp_fpga_data fpga_data;
static const struct fpga_driver_api zynqmp_api = {
static DEVICE_API(fpga, zynqmp_api) = {
.reset = zynqmp_fpga_reset,
.load = zynqmp_fpga_load,
.get_status = zynqmp_fpga_get_status,

Loading…
Cancel
Save