Files
build/patch/kernel/archive/sunxi-6.16/patches.megous/input-cyttsp4-Fix-compile-issue.patch
2025-09-21 20:09:24 +02:00

29 lines
964 B
Diff

From 2da7b23bff3f433868b6ca56225f53b4d5aed462 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 f44438fc98ab..2301b2e97c2c 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[CY_TMA4XX_MAX_TCH] = {};
struct cyttsp4_signal_def* sig;
for (i = 0; i < num_cur_tch; i++) {
--
2.51.0