diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2012-05-09 01:40:26 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-05-10 23:39:06 -0400 |
commit | 822115ff4bd7141a6069dcc17b35dfd823a44dff (patch) | |
tree | 34122740ec7230213ccb438009dbb267aa1f1f41 /drivers/input | |
parent | d1ff320f0a9766a53ae412d96f72bd861a889af6 (diff) |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/atmel_mxt_ts.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 8f0dc7776e7d..12a6ba2792a7 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c | |||
@@ -236,7 +236,6 @@ struct mxt_object { | |||
236 | struct mxt_message { | 236 | struct mxt_message { |
237 | u8 reportid; | 237 | u8 reportid; |
238 | u8 message[7]; | 238 | u8 message[7]; |
239 | u8 checksum; | ||
240 | }; | 239 | }; |
241 | 240 | ||
242 | struct mxt_finger { | 241 | struct mxt_finger { |
@@ -336,7 +335,6 @@ static void mxt_dump_message(struct device *dev, | |||
336 | dev_dbg(dev, "message5:\t0x%x\n", message->message[4]); | 335 | dev_dbg(dev, "message5:\t0x%x\n", message->message[4]); |
337 | dev_dbg(dev, "message6:\t0x%x\n", message->message[5]); | 336 | dev_dbg(dev, "message6:\t0x%x\n", message->message[5]); |
338 | dev_dbg(dev, "message7:\t0x%x\n", message->message[6]); | 337 | dev_dbg(dev, "message7:\t0x%x\n", message->message[6]); |
339 | dev_dbg(dev, "checksum:\t0x%x\n", message->checksum); | ||
340 | } | 338 | } |
341 | 339 | ||
342 | static int mxt_check_bootloader(struct i2c_client *client, | 340 | static int mxt_check_bootloader(struct i2c_client *client, |