Browse Source

drivers: hwspinlock: Place API into iterable section

Add wrapper DEVICE_API macro to all hwspinlock_driver_api instances.

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

2
drivers/hwspinlock/sqn_hwspinlock.c

@ -123,7 +123,7 @@ static uint32_t sqn_hwspinlock_get_max_id(const struct device *dev) @@ -123,7 +123,7 @@ static uint32_t sqn_hwspinlock_get_max_id(const struct device *dev)
return config->num_locks;
}
static const struct hwspinlock_driver_api hwspinlock_api = {
static DEVICE_API(hwspinlock, hwspinlock_api) = {
.trylock = sqn_hwspinlock_trylock,
.lock = sqn_hwspinlock_lock,
.unlock = sqn_hwspinlock_unlock,

Loading…
Cancel
Save