Input: use ABS_CNT rather than (ABS_MAX + 1)

Signed-off-by: Daniel Mack <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
Daniel Mack 2010-05-20 22:52:58 -07:00 • committed by Dmitry Torokhov
commit 81c2a3ba49
6 changed files with 21 additions and 21 deletions

View file

@ -811,7 +811,7 @@ static const char *relatives[REL_MAX + 1] = {
[REL_WHEEL] = "Wheel", [REL_MISC] = "Misc",
};
static const char *absolutes[ABS_MAX + 1] = {
static const char *absolutes[ABS_CNT] = {
[ABS_X] = "X", [ABS_Y] = "Y",
[ABS_Z] = "Z", [ABS_RX] = "Rx",
[ABS_RY] = "Ry", [ABS_RZ] = "Rz",