touch_element: fix event callback parameter type, change it into pointer

This commit is contained in:
Kang Zuo Ling
2021-03-03 15:53:12 +08:00
parent d508182429
commit 1821fd766b
9 changed files with 30 additions and 24 deletions

View File

@@ -404,7 +404,7 @@ static inline void matrix_dispatch(te_matrix_handle_t matrix_handle, touch_elem_
matrix_info.event = matrix_handle->event;
matrix_info.position = matrix_handle->position;
void *arg = matrix_handle->config->arg;
matrix_handle->config->callback(matrix_handle, matrix_info, arg); //Event callback
matrix_handle->config->callback(matrix_handle, &matrix_info, arg); //Event callback
}
}