From 8e20d8105b637d6baf2b03c7c8846b78baa4d729 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 3 Jun 2014 08:25:37 +1000 Subject: [PATCH] test: fix resolution on all devices struct input_absinfo has the resolution as the 6th field, not as the 4th. This doesn't have any visible effect because uinput doesn't allow us to set the resolution yet. Signed-off-by: Peter Hutterer --- test/litest-bcm5974.c | 18 +++++++++--------- test/litest-synaptics-st.c | 8 ++++---- test/litest-synaptics.c | 18 +++++++++--------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/test/litest-bcm5974.c b/test/litest-bcm5974.c index 43605aaf..8e0a55b4 100644 --- a/test/litest-bcm5974.c +++ b/test/litest-bcm5974.c @@ -66,15 +66,15 @@ static struct litest_device_interface interface = { }; static struct input_absinfo absinfo[] = { - { ABS_X, 1472, 5472, 75 }, - { ABS_Y, 1408, 4448, 129 }, - { ABS_PRESSURE, 0, 255, 0 }, - { ABS_TOOL_WIDTH, 0, 15, 0 }, - { ABS_MT_SLOT, 0, 1, 0 }, - { ABS_MT_POSITION_X, 1472, 5472, 75 }, - { ABS_MT_POSITION_Y, 1408, 4448, 129 }, - { ABS_MT_TRACKING_ID, 0, 65535, 0 }, - { ABS_MT_PRESSURE, 0, 255, 0 }, + { ABS_X, 1472, 5472, 0, 0, 75 }, + { ABS_Y, 1408, 4448, 0, 0, 129 }, + { ABS_PRESSURE, 0, 255, 0, 0, 0 }, + { ABS_TOOL_WIDTH, 0, 15, 0, 0, 0 }, + { ABS_MT_SLOT, 0, 1, 0, 0, 0 }, + { ABS_MT_POSITION_X, 1472, 5472, 0, 0, 75 }, + { ABS_MT_POSITION_Y, 1408, 4448, 0, 0, 129 }, + { ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 }, + { ABS_MT_PRESSURE, 0, 255, 0, 0, 0 }, { .value = -1 }, }; diff --git a/test/litest-synaptics-st.c b/test/litest-synaptics-st.c index ffcfb06d..4e2ee563 100644 --- a/test/litest-synaptics-st.c +++ b/test/litest-synaptics-st.c @@ -65,10 +65,10 @@ static struct litest_device_interface interface = { }; static struct input_absinfo absinfo[] = { - { ABS_X, 1472, 5472, 75 }, - { ABS_Y, 1408, 4448, 129 }, - { ABS_PRESSURE, 0, 255, 0 }, - { ABS_TOOL_WIDTH, 0, 15, 0 }, + { ABS_X, 1472, 5472, 0, 0, 75 }, + { ABS_Y, 1408, 4448, 0, 0, 129 }, + { ABS_PRESSURE, 0, 255, 0, 0, 0 }, + { ABS_TOOL_WIDTH, 0, 15, 0, 0, 0 }, { .value = -1 }, }; diff --git a/test/litest-synaptics.c b/test/litest-synaptics.c index aeb7ed15..efa862b2 100644 --- a/test/litest-synaptics.c +++ b/test/litest-synaptics.c @@ -85,15 +85,15 @@ static int events[] = { }; static struct input_absinfo absinfo[] = { - { ABS_X, 1472, 5472, 75 }, - { ABS_Y, 1408, 4448, 129 }, - { ABS_PRESSURE, 0, 255, 0 }, - { ABS_TOOL_WIDTH, 0, 15, 0 }, - { ABS_MT_SLOT, 0, 1, 0 }, - { ABS_MT_POSITION_X, 1472, 5472, 75 }, - { ABS_MT_POSITION_Y, 1408, 4448, 129 }, - { ABS_MT_TRACKING_ID, 0, 65535, 0 }, - { ABS_MT_PRESSURE, 0, 255, 0 }, + { ABS_X, 1472, 5472, 0, 0, 75 }, + { ABS_Y, 1408, 4448, 0, 0, 129 }, + { ABS_PRESSURE, 0, 255, 0, 0, 0 }, + { ABS_TOOL_WIDTH, 0, 15, 0, 0, 0 }, + { ABS_MT_SLOT, 0, 1, 0, 0, 0 }, + { ABS_MT_POSITION_X, 1472, 5472, 0, 0, 75 }, + { ABS_MT_POSITION_Y, 1408, 4448, 0, 0, 129 }, + { ABS_MT_TRACKING_ID, 0, 65535, 0, 0, 0 }, + { ABS_MT_PRESSURE, 0, 255, 0, 0, 0 }, { .value = -1 } };