diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 12:19:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 12:19:55 -0400 |
commit | 7eb1053fd00a8f0e2263697638e17da8a251aa74 (patch) | |
tree | dcb9a521c2866d1d0c7c62503696819ead76961b /include/linux | |
parent | 03a3f695cb9776cfa7da5e8e6d34fd20dd56510e (diff) | |
parent | 388bbcade41ee68d2d1ebb51a538380ea48ae599 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
Input: usbtouchscreen - support bigger iNexio touchscreens
Input: ads7846 - return error on regulator_get() failure
Input: twl4030-vibra - correct the power down sequence
Input: enable onkey driver of max8925
Input: use ABS_CNT rather than (ABS_MAX + 1)
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/input.h | 12 | ||||
-rw-r--r-- | include/linux/joystick.h | 4 | ||||
-rw-r--r-- | include/linux/uinput.h | 10 |
3 files changed, 13 insertions, 13 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 83524e4f3290..6fcc9101beeb 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -1155,7 +1155,7 @@ struct input_dev { | |||
1155 | 1155 | ||
1156 | int sync; | 1156 | int sync; |
1157 | 1157 | ||
1158 | int abs[ABS_MAX + 1]; | 1158 | int abs[ABS_CNT]; |
1159 | int rep[REP_MAX + 1]; | 1159 | int rep[REP_MAX + 1]; |
1160 | 1160 | ||
1161 | unsigned long key[BITS_TO_LONGS(KEY_CNT)]; | 1161 | unsigned long key[BITS_TO_LONGS(KEY_CNT)]; |
@@ -1163,11 +1163,11 @@ struct input_dev { | |||
1163 | unsigned long snd[BITS_TO_LONGS(SND_CNT)]; | 1163 | unsigned long snd[BITS_TO_LONGS(SND_CNT)]; |
1164 | unsigned long sw[BITS_TO_LONGS(SW_CNT)]; | 1164 | unsigned long sw[BITS_TO_LONGS(SW_CNT)]; |
1165 | 1165 | ||
1166 | int absmax[ABS_MAX + 1]; | 1166 | int absmax[ABS_CNT]; |
1167 | int absmin[ABS_MAX + 1]; | 1167 | int absmin[ABS_CNT]; |
1168 | int absfuzz[ABS_MAX + 1]; | 1168 | int absfuzz[ABS_CNT]; |
1169 | int absflat[ABS_MAX + 1]; | 1169 | int absflat[ABS_CNT]; |
1170 | int absres[ABS_MAX + 1]; | 1170 | int absres[ABS_CNT]; |
1171 | 1171 | ||
1172 | int (*open)(struct input_dev *dev); | 1172 | int (*open)(struct input_dev *dev); |
1173 | void (*close)(struct input_dev *dev); | 1173 | void (*close)(struct input_dev *dev); |
diff --git a/include/linux/joystick.h b/include/linux/joystick.h index 9e20c29c1e14..47199b13e0eb 100644 --- a/include/linux/joystick.h +++ b/include/linux/joystick.h | |||
@@ -64,8 +64,8 @@ struct js_event { | |||
64 | #define JSIOCSCORR _IOW('j', 0x21, struct js_corr) /* set correction values */ | 64 | #define JSIOCSCORR _IOW('j', 0x21, struct js_corr) /* set correction values */ |
65 | #define JSIOCGCORR _IOR('j', 0x22, struct js_corr) /* get correction values */ | 65 | #define JSIOCGCORR _IOR('j', 0x22, struct js_corr) /* get correction values */ |
66 | 66 | ||
67 | #define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_MAX + 1]) /* set axis mapping */ | 67 | #define JSIOCSAXMAP _IOW('j', 0x31, __u8[ABS_CNT]) /* set axis mapping */ |
68 | #define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_MAX + 1]) /* get axis mapping */ | 68 | #define JSIOCGAXMAP _IOR('j', 0x32, __u8[ABS_CNT]) /* get axis mapping */ |
69 | #define JSIOCSBTNMAP _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1]) /* set button mapping */ | 69 | #define JSIOCSBTNMAP _IOW('j', 0x33, __u16[KEY_MAX - BTN_MISC + 1]) /* set button mapping */ |
70 | #define JSIOCGBTNMAP _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1]) /* get button mapping */ | 70 | #define JSIOCGBTNMAP _IOR('j', 0x34, __u16[KEY_MAX - BTN_MISC + 1]) /* get button mapping */ |
71 | 71 | ||
diff --git a/include/linux/uinput.h b/include/linux/uinput.h index 15ddd4483b09..60c81da77f0f 100644 --- a/include/linux/uinput.h +++ b/include/linux/uinput.h | |||
@@ -166,11 +166,11 @@ struct uinput_ff_erase { | |||
166 | struct uinput_user_dev { | 166 | struct uinput_user_dev { |
167 | char name[UINPUT_MAX_NAME_SIZE]; | 167 | char name[UINPUT_MAX_NAME_SIZE]; |
168 | struct input_id id; | 168 | struct input_id id; |
169 | int ff_effects_max; | 169 | int ff_effects_max; |
170 | int absmax[ABS_MAX + 1]; | 170 | int absmax[ABS_CNT]; |
171 | int absmin[ABS_MAX + 1]; | 171 | int absmin[ABS_CNT]; |
172 | int absfuzz[ABS_MAX + 1]; | 172 | int absfuzz[ABS_CNT]; |
173 | int absflat[ABS_MAX + 1]; | 173 | int absflat[ABS_CNT]; |
174 | }; | 174 | }; |
175 | #endif /* __UINPUT_H_ */ | 175 | #endif /* __UINPUT_H_ */ |
176 | 176 | ||