summaryrefslogtreecommitdiff
path: root/test/litest-device-synaptics.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/litest-device-synaptics.c')
-rw-r--r--test/litest-device-synaptics.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/litest-device-synaptics.c b/test/litest-device-synaptics.c
index 94981272..50ddc44c 100644
--- a/test/litest-device-synaptics.c
+++ b/test/litest-device-synaptics.c
@@ -26,13 +26,6 @@
#include "litest.h"
#include "litest-int.h"
-static void
-litest_synaptics_clickpad_setup(void)
-{
- struct litest_device *d = litest_create_device(LITEST_SYNAPTICS_CLICKPAD_X220);
- litest_set_current_device(d);
-}
-
static struct input_event down[] = {
{ .type = EV_ABS, .code = ABS_X, .value = LITEST_AUTO_ASSIGN },
{ .type = EV_ABS, .code = ABS_Y, .value = LITEST_AUTO_ASSIGN },
@@ -109,15 +102,13 @@ static struct input_absinfo absinfo[] = {
{ .value = -1 }
};
-struct litest_test_device litest_synaptics_clickpad_device = {
+TEST_DEVICE("synaptics",
.type = LITEST_SYNAPTICS_CLICKPAD_X220,
.features = LITEST_TOUCHPAD | LITEST_CLICKPAD | LITEST_BUTTON,
- .shortname = "synaptics",
- .setup = litest_synaptics_clickpad_setup,
.interface = &interface,
.name = "SynPS/2 Synaptics TouchPad",
.id = &input_id,
.events = events,
.absinfo = absinfo,
-};
+)