aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/input
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/input')
-rw-r--r--include/linux/input/mt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/input/mt.h b/include/linux/input/mt.h
index 6b6f7c8e95bf..cc5cca774bab 100644
--- a/include/linux/input/mt.h
+++ b/include/linux/input/mt.h
@@ -24,10 +24,12 @@
24 * struct input_mt_slot - represents the state of an input MT slot 24 * struct input_mt_slot - represents the state of an input MT slot
25 * @abs: holds current values of ABS_MT axes for this slot 25 * @abs: holds current values of ABS_MT axes for this slot
26 * @frame: last frame at which input_mt_report_slot_state() was called 26 * @frame: last frame at which input_mt_report_slot_state() was called
27 * @key: optional driver designation of this slot
27 */ 28 */
28struct input_mt_slot { 29struct input_mt_slot {
29 int abs[ABS_MT_LAST - ABS_MT_FIRST + 1]; 30 int abs[ABS_MT_LAST - ABS_MT_FIRST + 1];
30 unsigned int frame; 31 unsigned int frame;
32 unsigned int key;
31}; 33};
32 34
33/** 35/**
@@ -111,4 +113,6 @@ struct input_mt_pos {
111int input_mt_assign_slots(struct input_dev *dev, int *slots, 113int input_mt_assign_slots(struct input_dev *dev, int *slots,
112 const struct input_mt_pos *pos, int num_pos); 114 const struct input_mt_pos *pos, int num_pos);
113 115
116int input_mt_get_slot_by_key(struct input_dev *dev, int key);
117
114#endif 118#endif