Browse Source

drivers: interrupt_controller: Place API into iterable section

Commit e63c6cd534 introduced device API
macros to be used by driver implementations. The DEVICE_API macro
ensures the passed API instance is placed in the corresponding iterable
section to allow for runtime checks.

Add wrapper DEVICE_API macro to all its_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
pull/75728/head
Pieter De Gendt 7 months ago committed by Benjamin Cabé
parent
commit
b775c0d30e
  1. 2
      drivers/interrupt_controller/intc_gicv3_its.c

2
drivers/interrupt_controller/intc_gicv3_its.c

@ -655,7 +655,7 @@ static int gicv3_its_init(const struct device *dev) @@ -655,7 +655,7 @@ static int gicv3_its_init(const struct device *dev)
return 0;
}
struct its_driver_api gicv3_its_api = {
DEVICE_API(its, gicv3_its_api) = {
.alloc_intid = gicv3_its_alloc_intid,
.setup_deviceid = gicv3_its_init_device_id,
.map_intid = gicv3_its_map_intid,

Loading…
Cancel
Save