diff options
author | Super Liu <supercjliu@google.com> | 2020-04-14 11:43:34 +0800 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2020-04-21 10:37:12 +0800 |
commit | 3f0fc60d93b77acafaa31f635058bbb7f8d8bb66 (patch) | |
tree | ad04e9260fa3e43737ae3d2d3e05a43897aee39e | |
parent | b99220767142c2f7e5dd92e029d23e4df903703f (diff) | |
download | sec_touch-3f0fc60d93b77acafaa31f635058bbb7f8d8bb66.tar.gz |
sec_touch: remove read stuffing bytes
Bug: 140591953
Change-Id: I7608d6f8be28df3542cba52af33d67428e3f0883
Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r-- | sec_ts.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -258,7 +258,7 @@ static int sec_ts_read_internal(struct sec_ts_data *ts, u8 reg, spi_read_len = len + SEC_TS_SPI_READ_HEADER_SIZE + SEC_TS_SPI_CHECKSUM_SIZE; - spi_read_len = (spi_read_len + 3 + 20) & ~3; + spi_read_len = (spi_read_len + 3) & ~3; #endif if (len <= ts->io_burstmax) { #ifdef I2C_INTERFACE @@ -336,7 +336,6 @@ static int sec_ts_read_internal(struct sec_ts_data *ts, u8 reg, // read sequence start spi_message_init(&msg); - //TODO: for test, increase read size by 20bytes transfer[0].len = spi_read_len; transfer[0].tx_buf = NULL; transfer[0].rx_buf = ts->io_read_buf; |