Commit 5b7e1726 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

eventcomm: drop calculation of slot offset



The kernel guarantees slots start at 0
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires's avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
parent 040dfeba
...@@ -110,7 +110,7 @@ last_mt_vals_slot(const SynapticsPrivate * priv) ...@@ -110,7 +110,7 @@ last_mt_vals_slot(const SynapticsPrivate * priv)
{ {
struct eventcomm_proto_data *proto_data = struct eventcomm_proto_data *proto_data =
(struct eventcomm_proto_data *) priv->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; return value < priv->num_slots ? value : -1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment