From a5216b1266596f01a929ca04fe603b31ebaac3d1 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Thu, 21 Dec 2023 14:42:28 +0800 Subject: [PATCH] input: touchscreen: cyttsp5: Remove use of variable length array drivers/input/touchscreen/cyttsp5/cyttsp5_mt_common.c:238:9: error: ISO C90 forbids variable length array 'ids' [-Werror=vla] Signed-off-by: Weixin Zhou Signed-off-by: Tao Huang Change-Id: I8c5c31f53b22fdb8852d9c67ee453fec52368c8f --- drivers/input/touchscreen/cyttsp5/cyttsp5_mt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/cyttsp5/cyttsp5_mt_common.c b/drivers/input/touchscreen/cyttsp5/cyttsp5_mt_common.c index 25e5fa7654d4..f73c2f162401 100644 --- a/drivers/input/touchscreen/cyttsp5/cyttsp5_mt_common.c +++ b/drivers/input/touchscreen/cyttsp5/cyttsp5_mt_common.c @@ -235,7 +235,7 @@ static void cyttsp5_get_mt_touches(struct cyttsp5_mt_data *md, struct cyttsp5_sysinfo *si = md->si; int sig; int i, j, t = 0; - DECLARE_BITMAP(ids, si->tch_abs[CY_TCH_T].max); + DECLARE_BITMAP(ids, 32); int mt_sync_count = 0; u8 *tch_addr;