summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: