From fd995ca697c294d9549c35c9c821e91cbbaced13 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 1 Oct 2020 12:02:44 -0700 Subject: [PATCH] tests: onoff: use typedef for spinlock key This is an opaque type, all the relevant APIs take k_spinlock_key_t. Signed-off-by: Andrew Boie --- tests/lib/onoff/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/onoff/src/main.c b/tests/lib/onoff/src/main.c index 1b3f66b391d..20f22a3fbf8 100644 --- a/tests/lib/onoff/src/main.c +++ b/tests/lib/onoff/src/main.c @@ -1055,7 +1055,7 @@ static void test_cancel_or_release(void) static void test_sync_basic(void) { struct onoff_sync_service srv = {}; - struct k_spinlock_key key; + k_spinlock_key_t key; int res = 5; int rc; @@ -1132,7 +1132,7 @@ static void test_sync_basic(void) static void test_sync_error(void) { struct onoff_sync_service srv = {}; - struct k_spinlock_key key; + k_spinlock_key_t key; int res = -EPERM; int rc;