From e30fb0fb851d6f0d0914c7bed53c7fefb8a5dbf5 Mon Sep 17 00:00:00 2001 From: Vadim Zaliva Date: Wed, 10 Mar 2010 23:41:00 -0800 Subject: [PATCH] --- yaml --- r: 188055 b: refs/heads/master c: 04b4b88cca0ebe3813b4b6f014fb6a0db380b137 h: refs/heads/master i: 188053: cb7ce7becbf14daf45921adaf289b370ff41f13e 188051: 1da46d91a6d175d0290786edef1fe0af39468d77 188047: 18906ae514d79d651426e9761fdbe9056b59ce79 v: v3 --- [refs] | 2 +- trunk/drivers/input/mouse/appletouch.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index c51fa1d314b6..a26c63d41a3f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4eb6f91b95e7618eae0103b6cba7c7f01f9d40f3 +refs/heads/master: 04b4b88cca0ebe3813b4b6f014fb6a0db380b137 diff --git a/trunk/drivers/input/mouse/appletouch.c b/trunk/drivers/input/mouse/appletouch.c index 908b5b44052f..53ec7ddd1826 100644 --- a/trunk/drivers/input/mouse/appletouch.c +++ b/trunk/drivers/input/mouse/appletouch.c @@ -205,8 +205,8 @@ struct atp { bool overflow_warned; int x_old; /* last reported x/y, */ int y_old; /* used for smoothing */ - signed char xy_cur[ATP_XSENSORS + ATP_YSENSORS]; - signed char xy_old[ATP_XSENSORS + ATP_YSENSORS]; + u8 xy_cur[ATP_XSENSORS + ATP_YSENSORS]; + u8 xy_old[ATP_XSENSORS + ATP_YSENSORS]; int xy_acc[ATP_XSENSORS + ATP_YSENSORS]; int idlecount; /* number of empty packets */ struct work_struct work; @@ -531,7 +531,7 @@ static void atp_complete_geyser_1_2(struct urb *urb) for (i = 0; i < ATP_XSENSORS + ATP_YSENSORS; i++) { /* accumulate the change */ - signed char change = dev->xy_old[i] - dev->xy_cur[i]; + int change = dev->xy_old[i] - dev->xy_cur[i]; dev->xy_acc[i] -= change; /* prevent down drifting */