[PATCH] fix wrong finger width range

JJ Ding jj_ding at emc.com.tw
Tue Dec 27 22:46:02 PST 2011


From: JJ Ding <dgdunix at gmail.com>

Signed-off-by: JJ Ding <dgdunix at gmail.com>
---
Hi list,

trivial fix, patch is against current master HEAD.
Thanks.

jj

 src/eventcomm.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/eventcomm.c b/src/eventcomm.c
index 40e9bdf..00dc532 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -253,7 +253,6 @@ static void
 event_query_axis_ranges(InputInfoPtr pInfo)
 {
     SynapticsPrivate *priv = (SynapticsPrivate *)pInfo->private;
-    struct input_absinfo abs = {0};
     unsigned long absbits[NBITS(ABS_MAX)] = {0};
     unsigned long keybits[NBITS(KEY_MAX)] = {0};
     char buf[256] = {0};
@@ -316,7 +315,7 @@ event_query_axis_ranges(InputInfoPtr pInfo)
 		    "device does not report pressure, will use touch data.\n");
     if (priv->has_width)
 	xf86IDrvMsg(pInfo, X_PROBED, "finger width range %d - %d\n",
-		    abs.minimum, abs.maximum);
+		    priv->minw, priv->maxw);
     else
 	xf86IDrvMsg(pInfo, X_INFO,
 		    "device does not report finger width.\n");
-- 
1.7.8



More information about the xorg-devel mailing list