summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-03-10 16:42:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-03-20 10:58:23 +1000
commit91cc1e82143b939bfb4fce97429b07105333e146 (patch)
treeeff325452b8b0be6ddb470dfa18ce2b14ba6131c /src
parent8a5533aaa7e6e57bca7674de4cd25b3a18217d44 (diff)
eventcomm: drop calculation of slot offset
The kernel guarantees slots start at 0 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> (cherry picked from commit 5b7e1726369d4973859996f225bec743c2e21288)
Diffstat (limited to 'src')
-rw-r--r--src/eventcomm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index a9a344b..5db7e48 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -98,7 +98,7 @@ last_mt_vals_slot(const SynapticsPrivate * priv)
{
struct eventcomm_proto_data *proto_data =
(struct eventcomm_proto_data *) priv->proto_data;
- int value = proto_data->cur_slot - proto_data->mtdev->caps.slot.minimum;
+ int value = proto_data->cur_slot;
return value < priv->num_slots ? value : -1;
}