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>
This commit is contained in:
parent
35625c146a
commit
c1bccb156b
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ static uint32_t sqn_hwspinlock_get_max_id(const struct device *dev)
|
||||||
return config->num_locks;
|
return config->num_locks;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct hwspinlock_driver_api hwspinlock_api = {
|
static DEVICE_API(hwspinlock, hwspinlock_api) = {
|
||||||
.trylock = sqn_hwspinlock_trylock,
|
.trylock = sqn_hwspinlock_trylock,
|
||||||
.lock = sqn_hwspinlock_lock,
|
.lock = sqn_hwspinlock_lock,
|
||||||
.unlock = sqn_hwspinlock_unlock,
|
.unlock = sqn_hwspinlock_unlock,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue