Input: atmel_mxt_ts - add variable length __mxt_write_reg
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 28 Jun 2012 13:08:12 +0000 (21:08 +0800)
committerHenrik Rydberg <rydberg@euromail.se>
Fri, 29 Jun 2012 13:58:04 +0000 (15:58 +0200)
commit9638ab7c9c3b352d54f4f7e80027bd6e1c0584e8
treeee0687ee8d93c567d459e0395a2922fed2f555ed
parent771733e348e3df5b6283ab3b97d28577452bf09f
Input: atmel_mxt_ts - add variable length __mxt_write_reg

The i2c bus requires 4 bytes to do a 1-byte write
(1 byte i2c address + 2 byte offset + 1 byte data).

By taking a length with writes, the driver can amortize transaction
overhead by performing larger transactions where appropriate.

This patch just sets up the new API.  Later patches refactor writes
to take advantage of the larger transactions.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/input/touchscreen/atmel_mxt_ts.c