evdev: add a comment to the toggle_touch interface

And remove an unnecessary one

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-09-19 13:23:48 +10:00
parent 4cc24876da
commit ca83625a74
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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);