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 <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-10-01 12:02:44 -07:00 committed by Anas Nashif
commit fd995ca697

View file

@ -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;