diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-04-25 00:53:18 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-04-25 00:53:18 -0400 |
commit | 534565f254490227e3bec20d50f387800960acd9 (patch) | |
tree | 7e4a8ec054f21e9d709e5dd25fb8a4a0673cc1bb /include/linux/input.h | |
parent | b9973954c5f3264a2afa6ec357adb542f4b76e06 (diff) |
Input: add input_set_capability() helper
Add input_set_capability() helper used to indicate that an input
device supports a certain event without need to manipulate bitmaps
directly.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r-- | include/linux/input.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 7b6d7c408b07..1789ee9df4dd 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -1160,6 +1160,8 @@ static inline void input_sync(struct input_dev *dev) | |||
1160 | input_event(dev, EV_SYN, SYN_REPORT, 0); | 1160 | input_event(dev, EV_SYN, SYN_REPORT, 0); |
1161 | } | 1161 | } |
1162 | 1162 | ||
1163 | void input_set_capability(struct input_dev *dev, unsigned int type, unsigned int code); | ||
1164 | |||
1163 | static inline void input_set_abs_params(struct input_dev *dev, int axis, int min, int max, int fuzz, int flat) | 1165 | static inline void input_set_abs_params(struct input_dev *dev, int axis, int min, int max, int fuzz, int flat) |
1164 | { | 1166 | { |
1165 | dev->absmin[axis] = min; | 1167 | dev->absmin[axis] = min; |