summaryrefslogtreecommitdiffstats
path: root/include/linux/input.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-10-09 11:09:33 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-10-19 16:53:34 -0700
commit55dfce873dca46df00304c44a568d7933bffff89 (patch)
tree1faf3be2f3a5b6390b1e9daa2143753d7e6d8fae /include/linux/input.h
parent9b5db7aab4d6b66f84f5e147c87eff4fe8b48651 (diff)
downloadlinux-55dfce873dca46df00304c44a568d7933bffff89.tar.gz
linux-55dfce873dca46df00304c44a568d7933bffff89.tar.bz2
linux-55dfce873dca46df00304c44a568d7933bffff89.zip
Input: factor out and export input_device_id matching code
Factor out and export input_match_device_id() so that modules may use it. It will be needed by joydev to blacklist accelerometers in composite devices. Tested-by: Roderick Colenbrander <roderick.colenbrander@sony.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r--include/linux/input.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index fb5e23c7ed98..2a44650e449d 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -469,6 +469,9 @@ int input_get_keycode(struct input_dev *dev, struct input_keymap_entry *ke);
int input_set_keycode(struct input_dev *dev,
const struct input_keymap_entry *ke);
+bool input_match_device_id(const struct input_dev *dev,
+ const struct input_device_id *id);
+
void input_enable_softrepeat(struct input_dev *dev, int delay, int period);
extern struct class input_class;