summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2019-10-05 17:48:44 +0800
committerdavidycchen <davidycchen@google.com>2019-10-05 18:02:04 +0800
commit193a33b93fe618d0a56695ec41ab2912b72bfc4c (patch)
treea59619a0bdc809754067161f73df703db0a1ee3d
parentc363effc7bdf48edcb238bd6ff1701063adc46da (diff)
downloadfts_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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fts_proc.c b/fts_proc.c
index 34ca325..a3350a6 100644
--- a/fts_proc.c
+++ b/fts_proc.c
@@ -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;