armbian_build/patch/kernel/archive/sunxi-6.12/patches.megous/input-cyttsp4-Fix-compile-issue.patch
2025-01-05 10:15:14 +01:00

29 lines
990 B
Diff

From 0000000000000000000000000000000000000000 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 111111111111..222222222222 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++) {
--
Armbian