summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2023-02-14 01:28:55 +0000
committerSuper Liu <supercjliu@google.com>2023-02-14 01:55:18 +0000
commit44fdf05ccc4a7be5c6e812437196b676e1da5a33 (patch)
treecb1f24d7a2e245e42baf662697e5691c0e13c833
parent40fbfb7c32ec60dc1300892cbdc737df1408b188 (diff)
downloadcommon-44fdf05ccc4a7be5c6e812437196b676e1da5a33.tar.gz
gti: Correct the probe sequence to initialize the input.
Bug: 244371891 Change-Id: Iceba50d04b6a7af72e035c3b7b9601ee9c33cf3f Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r--goog_touch_interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/goog_touch_interface.c b/goog_touch_interface.c
index 681c45c..75d010b 100644
--- a/goog_touch_interface.c
+++ b/goog_touch_interface.c
@@ -3807,10 +3807,13 @@ struct goog_touch_interface *goog_touch_interface_probe(
}
if (gti && gti->dev) {
- goog_init_input(gti);
goog_init_proc(gti);
goog_init_options(gti, options);
goog_offload_probe(gti);
+ /*
+ * goog_init_input() needs the offload.cap initialization by goog_offload_probe().
+ */
+ goog_init_input(gti);
goog_update_fw_settings(gti);
goog_register_tbn(gti);
goog_pm_probe(gti);