drivers: hwspinlock: Fix context initializer build warning

Fixes a build warning in the hwspinlock context initializer macro that
occurs when struct k_spinlock has no members ("warning: excess elements
in struct initializer"). This change is consistent with other struct
k_spinlock initializers in kernel.h.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit is contained in:
Maureen Helm
2025-10-31 14:27:13 -05:00
committed by Johan Hedberg
parent a7f4150cd9
commit 8b208b0d5a

View File

@@ -73,7 +73,7 @@ struct hwspinlock_dt_spec {
*/
#define HWSPINLOCK_CTX_INITIALIZER \
{ \
.lock = {0}, \
.lock = {}, \
}
/**