summaryrefslogtreecommitdiff
path: root/goodix_ts_proc.c
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2022-11-22 09:33:16 +0800
committerdavidycchen <davidycchen@google.com>2022-11-22 11:15:26 +0800
commitd489225c2902cb3f3a3d5fc248e13533ab2daa2d (patch)
tree1a1980cd77e77855812b807befb87a11ea1055fb /goodix_ts_proc.c
parent7bc4ab91507ea62ee15fa506b5eebdcd26e57de9 (diff)
parentace1c47def43c3d0c6f83dc40b7e9f54d4db3bab (diff)
downloadgoodix_touch-d489225c2902cb3f3a3d5fc248e13533ab2daa2d.tar.gz
Merge branch 'android13-gs-pixel-5.10-tm-qpr2' into android13-gs-pixel-5.15
Change-Id: I6c0a2093fb9d33175810ac6ba3338a04c22e1aff
Diffstat (limited to 'goodix_ts_proc.c')
-rw-r--r--goodix_ts_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/goodix_ts_proc.c b/goodix_ts_proc.c
index 1688dea..90031e9 100644
--- a/goodix_ts_proc.c
+++ b/goodix_ts_proc.c
@@ -3010,7 +3010,7 @@ static void goodix_get_dump_log(void)
static void goodix_get_stylus_data(void)
{
struct goodix_stylus_data stylus_data;
- u8 temp_buf[320] = { 0 };
+ u8 temp_buf[40] = { 0 };
u32 flag_addr = cd->ic_info.misc.touch_data_addr;
int tx = cd->ic_info.parm.drv_num;
int rx = cd->ic_info.parm.sen_num;
@@ -3075,7 +3075,7 @@ static void goodix_get_stylus_data(void)
cd->ic_info.misc.fw_attr_len +
cd->ic_info.misc.fw_log_len;
ret = cd->hw_ops->read(
- cd, stylus_struct_addr, temp_buf, sizeof(stylus_data));
+ cd, stylus_struct_addr, (u8 *)&stylus_data, sizeof(stylus_data));
if (ret < 0) {
ts_err("read stylus struct data failed");
goto exit;