diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-12-04 11:08:01 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-12-04 15:58:33 +1000 |
commit | 06720852fc09aaeea897ba4926924161dd54c68b (patch) | |
tree | 9920ba402817249de6a246325faa9c392213654b | |
parent | 5d1c275bbc49e874740ae1acfe0809e2bd019de8 (diff) | |
download | libinput-06720852fc09aaeea897ba4926924161dd54c68b.tar.gz |
touchpad: drop unused device arg from tp_clear_state
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/evdev-mt-touchpad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 67a8d68a..aa9c8197 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -683,7 +683,7 @@ tp_destroy(struct evdev_dispatch *dispatch) } static void -tp_clear_state(struct tp_dispatch *tp, struct evdev_device *device) +tp_clear_state(struct tp_dispatch *tp) { uint64_t now = libinput_now(tp->device->base.seat->libinput); struct tp_touch *t; @@ -712,7 +712,7 @@ tp_clear_state(struct tp_dispatch *tp, struct evdev_device *device) static void tp_suspend(struct tp_dispatch *tp, struct evdev_device *device) { - tp_clear_state(tp, device); + tp_clear_state(tp); /* On devices with top softwarebuttons we don't actually suspend the * device, to keep the "trackpoint" buttons working. tp_post_events() @@ -732,7 +732,7 @@ tp_resume(struct tp_dispatch *tp, struct evdev_device *device) { if (tp->buttons.has_topbuttons) { /* tap state-machine is offline while suspended, reset state */ - tp_clear_state(tp, device); + tp_clear_state(tp); /* restore original topbutton area size */ tp_init_softbuttons(tp, device, 1.0); evdev_notify_resumed_device(device); |