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:
committed by
Johan Hedberg
parent
a7f4150cd9
commit
8b208b0d5a
@@ -73,7 +73,7 @@ struct hwspinlock_dt_spec {
|
||||
*/
|
||||
#define HWSPINLOCK_CTX_INITIALIZER \
|
||||
{ \
|
||||
.lock = {0}, \
|
||||
.lock = {}, \
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user