From f9ccfdb49a57b891493ccef4854de27163859b16 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 6 Jan 2015 08:52:49 +1000 Subject: [PATCH] test: drop empty test device interfaces We can just set the interface component to NULL directly instead. Fixes clang warnings: litest-mouse.c:38:1: warning: missing field 'touch_move' initializer [-Wmissing-field-initializers] litest-trackpoint.c:38:1: warning: missing field 'touch_move' initializer [-Wmissing-field-initializers] Signed-off-by: Peter Hutterer --- test/litest-mouse.c | 6 +----- test/litest-trackpoint.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/test/litest-mouse.c b/test/litest-mouse.c index cf0a7a05..3f68521f 100644 --- a/test/litest-mouse.c +++ b/test/litest-mouse.c @@ -33,10 +33,6 @@ static void litest_mouse_setup(void) litest_set_current_device(d); } -static struct litest_device_interface interface = { - NULL -}; - static struct input_id input_id = { .bustype = 0x3, .vendor = 0x17ef, @@ -58,7 +54,7 @@ struct litest_test_device litest_mouse_device = { .features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_WHEEL, .shortname = "mouse", .setup = litest_mouse_setup, - .interface = &interface, + .interface = NULL, .name = "Lenovo Optical USB Mouse", .id = &input_id, diff --git a/test/litest-trackpoint.c b/test/litest-trackpoint.c index 061835fc..09f8b704 100644 --- a/test/litest-trackpoint.c +++ b/test/litest-trackpoint.c @@ -33,10 +33,6 @@ static void litest_trackpoint_setup(void) litest_set_current_device(d); } -static struct litest_device_interface interface = { - NULL -}; - static struct input_id input_id = { .bustype = 0x11, .vendor = 0x2, @@ -59,7 +55,7 @@ struct litest_test_device litest_trackpoint_device = { .features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_POINTINGSTICK, .shortname = "trackpoint", .setup = litest_trackpoint_setup, - .interface = &interface, + .interface = NULL, .name = "TPPS/2 IBM TrackPoint", .id = &input_id,