Input: cyttsp4 - use 16bit address for I2C/SPI communication
authorFerruh Yigit <fery@cypress.com>
Thu, 4 Jul 2013 21:02:57 +0000 (14:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 7 Jul 2013 04:57:06 +0000 (21:57 -0700)
commit62f548d0c2d2418e39b8e4b7ec39b5ca2ef4380d
treeeedbce56f669215f4ee0d57ed817335f612c4372
parent57961e3ba72f4a8a1aa52e978020ecc2ca03a79f
Input: cyttsp4 - use 16bit address for I2C/SPI communication

In TSG4, register map is 512bytes long and to access all of it,
one bit from address byte is used (which bit to use differs for
I2C and SPI);

Since common code used for TSG3 and TSG4 for I2C, this parameter
wrongly used as u8. TSG3 does not access beyond 255 bytes
but TSG4 may.

Tested-on:TMA3XX DVB && TMA4XX DVB

Signed-off-by: Ferruh Yigit <fery@cypress.com>
Acked-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/cyttsp4_core.h
drivers/input/touchscreen/cyttsp4_spi.c
drivers/input/touchscreen/cyttsp_core.h
drivers/input/touchscreen/cyttsp_i2c_common.c
drivers/input/touchscreen/cyttsp_spi.c