From 6f7c5c558006bb69fdf0af73103097c012ccfed5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 25 Jul 2013 13:21:09 +1000 Subject: Replace hardcoded 11 with a define The 11 comes from the legacy API that we need to be binary compatible with. Make this clear with a define and a comment. Signed-off-by: Peter Hutterer --- src/state.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index 256858a..06e86ae 100644 --- a/src/state.h +++ b/src/state.h @@ -72,8 +72,8 @@ static inline void set_sval(struct mtdev_slot *slot, int ix, int value) */ struct mtdev_state { - int has_ext_abs[MT_ABS_SIZE - 11]; - struct input_absinfo ext_abs[MT_ABS_SIZE - 11]; + int has_ext_abs[MT_ABS_SIZE - LEGACY_API_NUM_MT_AXES]; + struct input_absinfo ext_abs[MT_ABS_SIZE - LEGACY_API_NUM_MT_AXES]; struct mtdev_iobuf iobuf; struct mtdev_evbuf inbuf; -- cgit v1.2.3