diff options
author | Daniel Mack <daniel@caiaq.de> | 2010-05-20 22:52:58 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-05-20 23:05:28 -0700 |
commit | 81c2a3ba497835797332b517ebf2de7b7f2a7c80 (patch) | |
tree | a7dee14c14bdf2a1d9a5aa99bf9625943ace70ba /include/linux/joystick.h | |
parent | a62f0d27b4196bad5e900d766b285feb7069cd16 (diff) | |
download | kernel_samsung_espresso10-81c2a3ba497835797332b517ebf2de7b7f2a7c80.zip kernel_samsung_espresso10-81c2a3ba497835797332b517ebf2de7b7f2a7c80.tar.gz kernel_samsung_espresso10-81c2a3ba497835797332b517ebf2de7b7f2a7c80.tar.bz2 |
Input: use ABS_CNT rather than (ABS_MAX + 1)
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/joystick.h')
-rw-r--r-- | include/linux/joystick.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/joystick.h b/include/linux/joystick.h index 9e20c29..47199b1 100644 --- a/include/linux/joystick.h +++ b/include/linux/joystick.h @@ -64,8 +64,8 @@ struct js_event { #define JSIOCSCORR _IOW('j', 0x21, struct js_corr) /* set correction values */ #define JSIOCGCORR _IOR('j', 0x22, struct js_corr) /* get correction values */ -#define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_MAX + 1]) /* set axis mapping */ -#define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_MAX + 1]) /* get axis mapping */ +#define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_CNT]) /* set axis mapping */ +#define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_CNT]) /* get axis mapping */ #define JSIOCSBTNMAP _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1]) /* set button mapping */ #define JSIOCGBTNMAP _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1]) /* get button mapping */ |