summaryrefslogtreecommitdiffstats
path: root/include/linux/input.h
diff options
context:
space:
mode:
authorDmitry Torokhov2007-04-25 06:53:18 +0200
committerDmitry Torokhov2007-04-25 06:53:18 +0200
commit534565f254490227e3bec20d50f387800960acd9 (patch)
tree7e4a8ec054f21e9d709e5dd25fb8a4a0673cc1bb /include/linux/input.h
parentInput: i8042 - add Fujitsu touchscreen/touchpad PNP IDs (diff)
downloadkernel-qcow2-linux-534565f254490227e3bec20d50f387800960acd9.tar.gz
kernel-qcow2-linux-534565f254490227e3bec20d50f387800960acd9.tar.xz
kernel-qcow2-linux-534565f254490227e3bec20d50f387800960acd9.zip
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.h2
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)
input_event(dev, EV_SYN, SYN_REPORT, 0);
}
+void input_set_capability(struct input_dev *dev, unsigned int type, unsigned int code);
+
static inline void input_set_abs_params(struct input_dev *dev, int axis, int min, int max, int fuzz, int flat)
{
dev->absmin[axis] = min;