[PATCH synaptics 2/4] eventcomm: drop calculation of slot offset

Peter Hutterer peter.hutterer at who-t.net
Mon Mar 10 22:27:43 PDT 2014


The kernel guarantees slots start at 0

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/eventcomm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/eventcomm.c b/src/eventcomm.c
index 82f620d..ff3d84d 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -110,7 +110,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;
 }
-- 
1.8.5.3



More information about the xorg-devel mailing list