diff options
author | Ravi Jain <raviajain@google.com> | 2022-09-28 17:10:53 +0800 |
---|---|---|
committer | Ravi Jain <raviajain@google.com> | 2022-09-28 17:10:53 +0800 |
commit | d855bc7718664ecea70839575c32f2d7d4e5c0b8 (patch) | |
tree | 0647a011a54ab42590222895d3e49eca749d72e9 /goodix_ts_core.c | |
parent | 1de1038337bf767723bc327ca77ee96889b1ce61 (diff) | |
download | goodix_touch-d855bc7718664ecea70839575c32f2d7d4e5c0b8.tar.gz |
touch: goodix: Add info for input devices for association to displays.
Also add missing header file.
Test: Test the build locally to check if it works.
Bug: 248180415
Signed-off-by: Ravi Jain <raviajain@google.com>
Change-Id: Ic6a01718dd6b574ecb16b9ca5e66c2cade68dcb5
Diffstat (limited to 'goodix_ts_core.c')
-rw-r--r-- | goodix_ts_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c index 002310a..b5a0fd3 100644 --- a/goodix_ts_core.c +++ b/goodix_ts_core.c @@ -19,6 +19,7 @@ #include <linux/seq_file.h> #include <linux/uaccess.h> #include <linux/version.h> +#include <drm/drm_panel.h> #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) #include <linux/input/mt.h> @@ -2027,6 +2028,7 @@ static int goodix_ts_input_dev_config(struct goodix_ts_core *core_data) input_dev->name = GOODIX_CORE_DRIVER_NAME; input_dev->phys = GOOIDX_INPUT_PHYS; + input_dev->uniq = "goodix_ts"; input_dev->id.product = 0xDEAD; input_dev->id.vendor = 0xBEEF; input_dev->id.version = 10427; @@ -2087,6 +2089,8 @@ static int goodix_ts_pen_dev_config(struct goodix_ts_core *core_data) input_set_drvdata(pen_dev, core_data); pen_dev->name = GOODIX_PEN_DRIVER_NAME; + pen_dev->phys = "goodix_ts,pen/input0"; + pen_dev->uniq = "goodix_ts,pen"; pen_dev->id.product = 0xDEAD; pen_dev->id.vendor = 0xBEEF; pen_dev->id.version = 10427; |