summaryrefslogtreecommitdiff
path: root/goodix_ts_core.h
diff options
context:
space:
mode:
authorRavi Jain <raviajain@google.com>2022-11-02 01:50:24 +0800
committerRavi Jain <raviajain@google.com>2022-11-21 09:17:12 +0000
commitace1c47def43c3d0c6f83dc40b7e9f54d4db3bab (patch)
tree49198e60a37b50dae6c9142e0d825d3762d3abe1 /goodix_ts_core.h
parentad14c9790ecdb00dafa397830af3f4ddcd769333 (diff)
downloadgoodix_touch-ace1c47def43c3d0c6f83dc40b7e9f54d4db3bab.tar.gz
touch: goodix: fix read/writes when dma-mode isn't supported.
Test: Tested in both mode dma enabled and disabled. Bug: 254364041 Change-Id: I373ccd07ece3993f16d003bed2dbce607ce863c7 Signed-off-by: Ravi Jain <raviajain@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r--goodix_ts_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 3636357..2127abc 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -613,6 +613,7 @@ struct goodix_bus_interface {
u8 *rx_buf;
u8 *tx_buf;
struct mutex mutex;
+ bool dma_mode_enabled;
int (*read)(struct device *dev, unsigned int addr, unsigned char *data,
unsigned int len);
int (*read_fast)(struct device *dev, unsigned int addr,