From 6603758b4301d7af6dfa14e7a8104ce5c691ae1d Mon Sep 17 00:00:00 2001 From: Changhuang Liang Date: Mon, 6 Feb 2023 11:31:14 +0800 Subject: input: touchscreen: goodix: Update irq fetch mode Update irq fetch mode. Signed-off-by: Changhuang Liang --- drivers/input/touchscreen/goodix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index b068ff8afbc9..b4d91d394c1b 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -515,12 +515,12 @@ static irqreturn_t goodix_ts_irq_handler(int irq, void *dev_id) static void goodix_free_irq(struct goodix_ts_data *ts) { - devm_free_irq(&ts->client->dev, ts->client->irq, ts); + devm_free_irq(&ts->client->dev, gpiod_to_irq(ts->gpiod_int), ts); } static int goodix_request_irq(struct goodix_ts_data *ts) { - return devm_request_threaded_irq(&ts->client->dev, ts->client->irq, + return devm_request_threaded_irq(&ts->client->dev, gpiod_to_irq(ts->gpiod_int), NULL, goodix_ts_irq_handler, ts->irq_flags, ts->client->name, ts); } -- cgit v1.2.3 From 96a5c928a83983cc1162aee862e14547c712edca Mon Sep 17 00:00:00 2001 From: Changhuang Liang Date: Mon, 6 Feb 2023 11:37:14 +0800 Subject: riscv: dts: starfive: Add goodix gt911 touchscreen support Add goodix gt911 touchscreen support. Signed-off-by: Changhuang Liang --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index ef3dfe05ba51..3e6786bdc414 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include / { -- cgit v1.2.3