From 8987773440ab705d349f74e690d9b894022ffb70 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 4 Jan 2019 14:44:38 +1000 Subject: [PATCH] test: store the device type in the test device struct Signed-off-by: Peter Hutterer --- test/litest.c | 1 + test/litest.h | 1 + 2 files changed, 2 insertions(+) diff --git a/test/litest.c b/test/litest.c index 458ca793..58622c54 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1346,6 +1346,7 @@ litest_create(enum litest_device_type which, ck_abort_msg("Invalid device type %d\n", which); d = zalloc(sizeof(*d)); + d->which = which; /* device has custom create method */ if (dev->create) { diff --git a/test/litest.h b/test/litest.h index 88d8d88f..6400c79c 100644 --- a/test/litest.h +++ b/test/litest.h @@ -348,6 +348,7 @@ struct litest_semi_mt { }; struct litest_device { + enum litest_device_type which; struct libevdev *evdev; struct libevdev_uinput *uinput; struct libinput *libinput;