test: store the device type in the test device struct

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-01-04 14:44:38 +10:00
parent d4e6a6aadc
commit 8987773440
2 changed files with 2 additions and 0 deletions

View file

@ -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) {

View file

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