From a1a5bfe2ffb4a2e02beae7db9bf657bcb48748cf 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 06cd848971..fb228f4a97 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); + } } /****************************************************************************