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 <peter.hutterer@who-t.net>
litest_set_current_device(d);
}
-static struct litest_device_interface interface = {
- NULL
-};
-
static struct input_id input_id = {
.bustype = 0x3,
.vendor = 0x17ef,
.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,
litest_set_current_device(d);
}
-static struct litest_device_interface interface = {
- NULL
-};
-
static struct input_id input_id = {
.bustype = 0x11,
.vendor = 0x2,
.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,