Skip to content

Commit c1bccb1

Browse files
pdgendtkartben
authored andcommitted
drivers: hwspinlock: Place API into iterable section
Add wrapper DEVICE_API macro to all hwspinlock_driver_api instances. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 35625c1 commit c1bccb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwspinlock/sqn_hwspinlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static uint32_t sqn_hwspinlock_get_max_id(const struct device *dev)
123123
return config->num_locks;
124124
}
125125

126-
static const struct hwspinlock_driver_api hwspinlock_api = {
126+
static DEVICE_API(hwspinlock, hwspinlock_api) = {
127127
.trylock = sqn_hwspinlock_trylock,
128128
.lock = sqn_hwspinlock_lock,
129129
.unlock = sqn_hwspinlock_unlock,

0 commit comments

Comments
 (0)