summaryrefslogtreecommitdiff
path: root/src/state.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-07-25 13:21:09 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-07-31 10:05:49 +1000
commit6f7c5c558006bb69fdf0af73103097c012ccfed5 (patch)
tree28f65a8c130d095784d21c8759c81621c63e4e68 /src/state.h
parentb5d8e8e26c0116e4b6e556a0f6da8777bc55c590 (diff)
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 <peter.hutterer@who-t.net>
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h4
1 files changed, 2 insertions, 2 deletions
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)
72 */ 72 */
73struct mtdev_state { 73struct mtdev_state {
74 74
75 int has_ext_abs[MT_ABS_SIZE - 11]; 75 int has_ext_abs[MT_ABS_SIZE - LEGACY_API_NUM_MT_AXES];
76 struct input_absinfo ext_abs[MT_ABS_SIZE - 11]; 76 struct input_absinfo ext_abs[MT_ABS_SIZE - LEGACY_API_NUM_MT_AXES];
77 77
78 struct mtdev_iobuf iobuf; 78 struct mtdev_iobuf iobuf;
79 struct mtdev_evbuf inbuf; 79 struct mtdev_evbuf inbuf;