diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2005-12-28 16:27:04 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-12-28 16:27:04 -0500 |
commit | 68ca243dd1dc90bd42bae3945e804c1042584920 (patch) | |
tree | df6cb278ddce22daf8b524c82f2b43f012e025a0 /drivers | |
parent | d5784b57d2e08a632b971baae23266121004ef3b (diff) |
[SERMOUSE]: Sun mice speak 5-byte protocol too.
Noticed by Christophe Zimmerman, this explains the slow mouse movement
with 2.6.x kernels.
And checking the 2.4.x drivers/sbus/char/sunmouse.c driver shows we
always used a 5-byte protocol with Sun mice in the past. I have no
idea how the 3-byte thing got into the 2.6.x driver, but it's surely
wrong.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/mouse/sermouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/sermouse.c b/drivers/input/mouse/sermouse.c index 4bf584364d2..2f9a04ae725 100644 --- a/drivers/input/mouse/sermouse.c +++ b/drivers/input/mouse/sermouse.c | |||
@@ -95,7 +95,7 @@ static void sermouse_process_msc(struct sermouse *sermouse, signed char data, st | |||
95 | 95 | ||
96 | input_sync(dev); | 96 | input_sync(dev); |
97 | 97 | ||
98 | if (++sermouse->count == (5 - ((sermouse->type == SERIO_SUN) << 1))) | 98 | if (++sermouse->count == 5) |
99 | sermouse->count = 0; | 99 | sermouse->count = 0; |
100 | } | 100 | } |
101 | 101 | ||