]> err.no Git - linux-2.6/commitdiff
[SERMOUSE]: Sun mice speak 5-byte protocol too.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 28 Dec 2005 21:27:04 +0000 (13:27 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 28 Dec 2005 21:27:04 +0000 (13:27 -0800)
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>
drivers/input/mouse/sermouse.c

index 4bf584364d28303ee49a53822c7a668f35bab49b..2f9a04ae725fa0024735f9864886b0853921efd0 100644 (file)
@@ -95,7 +95,7 @@ static void sermouse_process_msc(struct sermouse *sermouse, signed char data, st
 
        input_sync(dev);
 
-       if (++sermouse->count == (5 - ((sermouse->type == SERIO_SUN) << 1)))
+       if (++sermouse->count == 5)
                sermouse->count = 0;
 }