diff options
author | davidycchen <davidycchen@google.com> | 2019-10-05 17:48:44 +0800 |
---|---|---|
committer | davidycchen <davidycchen@google.com> | 2019-10-05 18:02:04 +0800 |
commit | 193a33b93fe618d0a56695ec41ab2912b72bfc4c (patch) | |
tree | a59619a0bdc809754067161f73df703db0a1ee3d | |
parent | c363effc7bdf48edcb238bd6ff1701063adc46da (diff) | |
download | fts_touch_s5-193a33b93fe618d0a56695ec41ab2912b72bfc4c.tar.gz |
touch: fts: fix build break when interface changes
Change bus interface from SPI to I2C will build break.
Bug: 142166340
Change-Id: I1be6c183005cc163bb131dac82460b271b8261a5
Signed-off-by: davidycchen <davidycchen@google.com>
-rw-r--r-- | fts_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1097,10 +1097,10 @@ static ssize_t fts_driver_test_write(struct file *file, const char __user *buf, #ifdef I2C_INTERFACE fileSize |= 0x00200000; -#endif - +#else if (getClient() && (getClient()->mode & SPI_3WIRE) == 0) fileSize |= 0x00400000; +#endif #ifdef PHONE_KEY /* it is a feature enabled in the config of the chip */ fileSize |= 0x00000100; |