From ceda8e0cf19f28aa5a2eb5b9dd840ec9368a4cc3 Mon Sep 17 00:00:00 2001 From: "eunwoo.nam" Date: Tue, 7 Jan 2025 20:50:52 +0900 Subject: [PATCH] drives/input: Fix wrong touch event notification. In the ist415_forced_release function data.npoints can be 0. (There is no pushed touch point) But, since touch is reported even if touch point count is 0. Therefore, fix wrong null touch event Signed-off-by: eunwoo.nam --- os/drivers/input/ist415.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/os/drivers/input/ist415.c b/os/drivers/input/ist415.c index 1c378244e5..157334cde1 100644 --- a/os/drivers/input/ist415.c +++ b/os/drivers/input/ist415.c @@ -122,7 +122,10 @@ static void ist415_forced_release(struct ist415_dev_s *dev) dev->touched[i] = false; } } - touch_report(dev->upper, &data); + + if (data.npoints > 0) { + touch_report(dev->upper, &data); + } } /****************************************************************************