summaryrefslogtreecommitdiff
path: root/goodix_ts_core.c
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2022-09-15 08:18:54 +0000
committerWendly Li <wendlyli@google.com>2022-09-19 05:38:40 +0000
commit525312d16cd434b32db5ee696bfe916a36af2a9e (patch)
treefe6170994b9ddde51a0f7d1c753c77a09f123f1b /goodix_ts_core.c
parentbed4e986cdf55167dd60e03852d59e693f67e47e (diff)
downloadgoodix_touch-525312d16cd434b32db5ee696bfe916a36af2a9e.tar.gz
touch/goodix: Fix can't find correct display panel
Bug: 245261386 Test: Check the driver updates the correct fw and cfg Change-Id: I881da0102a6b44b047db28e5e9d1699f4ebef1ec Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.c')
-rw-r--r--goodix_ts_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c
index 9463ec2..147b6db 100644
--- a/goodix_ts_core.c
+++ b/goodix_ts_core.c
@@ -1345,7 +1345,7 @@ static int goodix_parse_dt(
if (of_property_read_bool(node, "goodix,panel_map")) {
for (index = 0;; index++) {
r = of_parse_phandle_with_fixed_args(
- node, "goodix,panel_map", 0, index, &panelmap);
+ node, "goodix,panel_map", 1, index, &panelmap);
if (r)
return -EPROBE_DEFER;
panel = of_drm_find_panel(panelmap.np);