we're dealing w/ 6 byte packets now..

Andres Salomon dilinger at debian.unroutableorg
Wed Jan 3 03:36:24 EST 2007


Commit:     8b7fc7038e0761b6b9f054704a81112c1be4c2e0
Parent:     4ad40f5258f1bdf3250a191f08811a10e15c4f64
commit 8b7fc7038e0761b6b9f054704a81112c1be4c2e0
Author:     Andres Salomon <dilinger at debian.org>
AuthorDate: Mon Dec 18 16:12:47 2006 -0500
Commit:     Andres Salomon <dilinger at debian.org>
CommitDate: Mon Dec 18 16:12:47 2006 -0500

    we're dealing w/ 6 byte packets now..
---
 drivers/input/mouse/olpc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/input/mouse/olpc.c b/drivers/input/mouse/olpc.c
index 9282470..489df03 100644
--- a/drivers/input/mouse/olpc.c
+++ b/drivers/input/mouse/olpc.c
@@ -166,8 +166,8 @@ static psmouse_ret_t olpc_process_byte(s
 	    psmouse->packet[0] != OLPC_PKT_GS)
 		goto out;
 
-	/* Bytes 2 - 9 should have 0 in the highest bit */
-	if (psmouse->pktcnt >= 2 && psmouse->pktcnt <= 9 &&
+	/* Bytes 2 - 6 should have 0 in the highest bit */
+	if (psmouse->pktcnt >= 2 && psmouse->pktcnt <= 6 &&
 			(psmouse->packet[psmouse->pktcnt - 1] & 0x80))
 		goto out;
 


More information about the Commits-kernel mailing list