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>
This commit is contained in:
Pieter De Gendt 2024-11-28 13:11:54 +01:00 committed by Benjamin Cabé
parent 97095c6fc4
commit b775c0d30e

View file

@ -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,