Skip to content

Commit 822115f

Browse files
djkurtzdtor
authored andcommitted
Input: atmel_mxt_ts - do not read extra (checksum) byte
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>
1 parent d1ff320 commit 822115f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/input/touchscreen/atmel_mxt_ts.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ struct mxt_object {
236236
struct mxt_message {
237237
u8 reportid;
238238
u8 message[7];
239-
u8 checksum;
240239
};
241240

242241
struct mxt_finger {
@@ -336,7 +335,6 @@ static void mxt_dump_message(struct device *dev,
336335
dev_dbg(dev, "message5:\t0x%x\n", message->message[4]);
337336
dev_dbg(dev, "message6:\t0x%x\n", message->message[5]);
338337
dev_dbg(dev, "message7:\t0x%x\n", message->message[6]);
339-
dev_dbg(dev, "checksum:\t0x%x\n", message->checksum);
340338
}
341339

342340
static int mxt_check_bootloader(struct i2c_client *client,

0 commit comments

Comments
 (0)