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 <zwx@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8c5c31f53b22fdb8852d9c67ee453fec52368c8f
This commit is contained in:
Tao Huang
2023-12-21 14:42:28 +08:00
parent b520a8aa50
commit a5216b1266

View File

@@ -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;