armbian_build/patch/kernel/archive/sunxi-6.13/patches.megous/input-cyttsp4-Fix-compile-issue.patch
2025-03-21 10:24:35 +01:00

29 lines
989 B
Diff

From bef1bb1556f76dcc90d832d787bec066fd96f6f3 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 22 Nov 2024 23:42:03 +0100
Subject: input: cyttsp4: Fix compile issue
We can't use {0} initializer with v6.12+
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/input/touchscreen/cyttsp4_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index 67cb72ad6620..97264bfbfca4 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -851,7 +851,7 @@ static void cyttsp4_get_mt_touches(struct cyttsp4 *cd, int num_cur_tch)
struct cyttsp4_sysinfo *si = cd->si;
struct cyttsp4_touch tch;
int i, j, t = 0;
- int ids[max(CY_TMA1036_MAX_TCH, CY_TMA4XX_MAX_TCH)] = {0};
+ int ids[max(CY_TMA1036_MAX_TCH, CY_TMA4XX_MAX_TCH)] = {};
struct cyttsp4_signal_def* sig;
for (i = 0; i < num_cur_tch; i++) {
--
2.35.3