summaryrefslogtreecommitdiff
path: root/test/litest-device-acer-hawaii-keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/litest-device-acer-hawaii-keyboard.c')
-rw-r--r--test/litest-device-acer-hawaii-keyboard.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/litest-device-acer-hawaii-keyboard.c b/test/litest-device-acer-hawaii-keyboard.c
index 1691e9c1..040a26a9 100644
--- a/test/litest-device-acer-hawaii-keyboard.c
+++ b/test/litest-device-acer-hawaii-keyboard.c
@@ -26,12 +26,6 @@
#include "litest.h"
#include "litest-int.h"
-static void litest_keyboard_setup(void)
-{
- struct litest_device *d = litest_create_device(LITEST_ACER_HAWAII_KEYBOARD);
- litest_set_current_device(d);
-}
-
static struct input_id input_id = {
.bustype = 0x3,
.vendor = 0x4f2,
@@ -194,15 +188,13 @@ static int events[] = {
-1, -1,
};
-struct litest_test_device litest_acer_hawaii_keyboard_device = {
+TEST_DEVICE("hawaii-keyboard",
.type = LITEST_ACER_HAWAII_KEYBOARD,
.features = LITEST_KEYS,
- .shortname = "hawaii-keyboard",
- .setup = litest_keyboard_setup,
.interface = NULL,
.name = "Chicony ACER Hawaii Keyboard",
.id = &input_id,
.events = events,
.absinfo = NULL,
-};
+)