Skip to content

Commit

Permalink
drivers: mbox: Wrap driver instances in device API macro
Browse files Browse the repository at this point in the history
Use the device API macro to place the driver API instance into an iterable
section.

Signed-off-by: Pieter De Gendt <[email protected]>
  • Loading branch information
pdgendt authored and kartben committed Feb 12, 2025
1 parent 61bfb4d commit 4670e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mbox/mbox_ti_omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static int omap_mailbox_set_enabled(const struct device *dev, uint32_t channel,
return 0;
}

static const struct mbox_driver_api omap_mailbox_driver_api = {
static DEVICE_API(mbox, omap_mailbox_driver_api) = {
.send = omap_mailbox_send,
.register_callback = omap_mailbox_register_callback,
.mtu_get = omap_mailbox_mtu_get,
Expand Down

0 comments on commit 4670e16

Please sign in to comment.