summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2023-03-22 07:45:03 +0000
committerSuper Liu <supercjliu@google.com>2023-03-29 07:03:55 +0000
commit7dfc07752a111f9455cebee47631dc4709060405 (patch)
treeb863c1dbc56aa424dcd2448ef6aa3c0a5d09ee79
parent0bda1f3d2b0ab1c1069042060c903a018f95bfaa (diff)
downloadgoodix_touch-7dfc07752a111f9455cebee47631dc4709060405.tar.gz
touch/goodix: Create goodix_ts procfs link for backward compatibility
Bug: 272408020 Change-Id: I5f5f840658f35737b2bf6ed87878e5ea1888eea1 Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r--goodix_ts_core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c
index 33261ab..21f0b7b 100644
--- a/goodix_ts_core.c
+++ b/goodix_ts_core.c
@@ -1176,6 +1176,13 @@ static int goodix_ts_procfs_init(struct goodix_ts_core *core_data)
goto err_create_driver;
}
+ /*
+ * [GOOG]
+ * Create symlink `goodix_ts` to `goodix_ts.0` for backward compatibility.
+ */
+ if (dev_id == 0)
+ proc_symlink("goodix_ts", NULL, proc_node);
+
return 0;
err_create_driver: