From ca83625a7463818dfe26bf316f26b79be9acf339 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 19 Sep 2017 13:23:48 +1000 Subject: [PATCH] evdev: add a comment to the toggle_touch interface And remove an unnecessary one Signed-off-by: Peter Hutterer --- src/evdev.c | 2 +- src/evdev.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index a932a977..8d720c73 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1734,7 +1734,7 @@ struct evdev_dispatch_interface fallback_interface = { fallback_interface_device_removed, /* device_suspended, treat as remove */ fallback_interface_device_added, /* device_resumed, treat as add */ fallback_sync_initial_state, /* post_added */ - fallback_toggle_touch, /* toggle_touch */ + fallback_toggle_touch, }; static uint32_t diff --git a/src/evdev.h b/src/evdev.h index 9699e5e4..407ebb14 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -308,6 +308,8 @@ struct evdev_dispatch_interface { void (*post_added)(struct evdev_device *device, struct evdev_dispatch *dispatch); + /* For touch arbitration, called on the device that should + * enable/disable touch capabilities */ void (*toggle_touch)(struct evdev_dispatch *dispatch, struct evdev_device *device, bool enable); -- 2.34.1