mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user