summaryrefslogtreecommitdiff
path: root/goodix_ts_proc.c
diff options
context:
space:
mode:
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;