diff options
author | Wendly Li <wendlyli@google.com> | 2022-01-13 16:13:36 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-01-21 08:51:15 +0000 |
commit | f117c02fc3bc53deb32cd0c55a2cc4e10ec3a6ef (patch) | |
tree | 09573ee0d12204c34a82d1c78a1ca7e47e09d46d /goodix_ts_core.h | |
parent | 39aab1926632e1b0b0e08ba4575ea447ef8dbc50 (diff) | |
download | goodix_touch-f117c02fc3bc53deb32cd0c55a2cc4e10ec3a6ef.tar.gz |
Avoid allocating memory frequently
Bug: 214118883
Test: Check memory allocation
Change-Id: I97ef74a66e1b9d3304979e221a469c9dc97aea02
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r-- | goodix_ts_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h index 54c6652..92d12a7 100644 --- a/goodix_ts_core.h +++ b/goodix_ts_core.h @@ -431,6 +431,8 @@ struct goodix_bus_interface { int ic_type; int sub_ic_type; struct device *dev; + u8 *rx_buf; + u8 *tx_buf; int (*read)(struct device *dev, unsigned int addr, unsigned char *data, unsigned int len); int (*write)(struct device *dev, unsigned int addr, unsigned char *data, |