Input: atmel_mxt_ts - do not read extra (checksum) byte
authorDaniel Kurtz <djkurtz@chromium.org>
Wed, 9 May 2012 05:40:26 +0000 (22:40 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 11 May 2012 03:39:06 +0000 (20:39 -0700)
atmel_mxt devices will send a checksum byte at the end of a message if
the MSB of the object address is set.
However, since this driver does not set this bit, the checksum byte
isn't actually sent, so don't even try to read it.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/atmel_mxt_ts.c

index 8f0dc7776e7da7f3673e82bd9a0a214cfb756ba2..12a6ba2792a7f1c5b5acccd92c1210114b255b27 100644 (file)
@@ -236,7 +236,6 @@ struct mxt_object {
 struct mxt_message {
        u8 reportid;
        u8 message[7];
-       u8 checksum;
 };
 
 struct mxt_finger {
@@ -336,7 +335,6 @@ static void mxt_dump_message(struct device *dev,
        dev_dbg(dev, "message5:\t0x%x\n", message->message[4]);
        dev_dbg(dev, "message6:\t0x%x\n", message->message[5]);
        dev_dbg(dev, "message7:\t0x%x\n", message->message[6]);
-       dev_dbg(dev, "checksum:\t0x%x\n", message->checksum);
 }
 
 static int mxt_check_bootloader(struct i2c_client *client,