[PATCH] fix wrong finger width range

Jeremy Huddleston jeremyhu at apple.com
Sat Dec 31 07:11:17 PST 2011


Reviewed-by: <jeremyhu at apple.com>

On Dec 28, 2011, at 1:46 AM, JJ Ding wrote:

> 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
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list