From 36aaa54056c4f4e150f6ee0636610d9a68470a08 Mon Sep 17 00:00:00 2001 From: lin <lin@kickpi.com> Date: Fri, 21 Mar 2025 02:07:15 +0000 Subject: [PATCH] fix(touchscreen) fixed the problem of gt9xx touch abnormality --- longan/kernel/linux-4.9/drivers/input/touchscreen/gt9xx/gt9xx.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/longan/kernel/linux-4.9/drivers/input/touchscreen/gt9xx/gt9xx.c b/longan/kernel/linux-4.9/drivers/input/touchscreen/gt9xx/gt9xx.c index 19196a0..9111b01 100755 --- a/longan/kernel/linux-4.9/drivers/input/touchscreen/gt9xx/gt9xx.c +++ b/longan/kernel/linux-4.9/drivers/input/touchscreen/gt9xx/gt9xx.c @@ -1583,11 +1583,11 @@ return ret; } #else - //ret = of_property_read_u32(np, "ctp_screen_max_x", &screen_max_x); - //of_property_read_u32(np, "ctp_screen_max_y", &screen_max_y); - //of_property_read_u32(np, "ctp_revert_x_flag", &revert_x_flag); - //of_property_read_u32(np, "ctp_revert_y_flag", &revert_y_flag); - //of_property_read_u32(np, "ctp_exchange_x_y_flag", &exchange_x_y_flag); + ret = of_property_read_u32(np, "ctp_screen_max_x", &screen_max_x); + of_property_read_u32(np, "ctp_screen_max_y", &screen_max_y); + of_property_read_u32(np, "ctp_revert_x_flag", &revert_x_flag); + of_property_read_u32(np, "ctp_revert_y_flag", &revert_y_flag); + of_property_read_u32(np, "ctp_exchange_x_y_flag", &exchange_x_y_flag); #endif sunxi_gpio_to_name(CTP_IRQ_NUMBER,irq_pin_name); pr_err("gt %s, line:%d irq_pin_name = %s \n",__FUNCTION__, __LINE__, irq_pin_name); -- Gitblit v1.6.2