diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-17 22:40:50 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-17 22:40:50 -0400 |
commit | 688d794c4c3f8b08c814381ee2edd3ede5856056 (patch) | |
tree | ef680add71e2a9588d07d8b594edbc1b5cd127d7 /include/linux/input | |
parent | 16142655269aaf580488e074eabfdcf0fb4e3687 (diff) | |
parent | a937536b868b8369b98967929045f1df54234323 (diff) |
Merge tag 'v3.9-rc3' into next
Merge with mainline to bring in module_platform_driver_probe() and
devm_ioremap_resource().
Diffstat (limited to 'include/linux/input')
-rw-r--r-- | include/linux/input/mt.h | 6 | ||||
-rw-r--r-- | include/linux/input/ti_am335x_tsc.h | 23 | ||||
-rw-r--r-- | include/linux/input/ti_tscadc.h | 17 |
3 files changed, 29 insertions, 17 deletions
diff --git a/include/linux/input/mt.h b/include/linux/input/mt.h index cc5cca774bab..2e86bd0bfba1 100644 --- a/include/linux/input/mt.h +++ b/include/linux/input/mt.h | |||
@@ -69,6 +69,12 @@ static inline bool input_mt_is_active(const struct input_mt_slot *slot) | |||
69 | return input_mt_get_value(slot, ABS_MT_TRACKING_ID) >= 0; | 69 | return input_mt_get_value(slot, ABS_MT_TRACKING_ID) >= 0; |
70 | } | 70 | } |
71 | 71 | ||
72 | static inline bool input_mt_is_used(const struct input_mt *mt, | ||
73 | const struct input_mt_slot *slot) | ||
74 | { | ||
75 | return slot->frame == mt->frame; | ||
76 | } | ||
77 | |||
72 | int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots, | 78 | int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots, |
73 | unsigned int flags); | 79 | unsigned int flags); |
74 | void input_mt_destroy_slots(struct input_dev *dev); | 80 | void input_mt_destroy_slots(struct input_dev *dev); |
diff --git a/include/linux/input/ti_am335x_tsc.h b/include/linux/input/ti_am335x_tsc.h new file mode 100644 index 000000000000..49269a2aa329 --- /dev/null +++ b/include/linux/input/ti_am335x_tsc.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef __LINUX_TI_AM335X_TSC_H | ||
2 | #define __LINUX_TI_AM335X_TSC_H | ||
3 | |||
4 | /** | ||
5 | * struct tsc_data Touchscreen wire configuration | ||
6 | * @wires: Wires refer to application modes | ||
7 | * i.e. 4/5/8 wire touchscreen support | ||
8 | * on the platform. | ||
9 | * @x_plate_resistance: X plate resistance. | ||
10 | * @steps_to_configure: The sequencer supports a total of | ||
11 | * 16 programmable steps. | ||
12 | * A step configured to read a single | ||
13 | * co-ordinate value, can be applied | ||
14 | * more number of times for better results. | ||
15 | */ | ||
16 | |||
17 | struct tsc_data { | ||
18 | int wires; | ||
19 | int x_plate_resistance; | ||
20 | int steps_to_configure; | ||
21 | }; | ||
22 | |||
23 | #endif | ||
diff --git a/include/linux/input/ti_tscadc.h b/include/linux/input/ti_tscadc.h deleted file mode 100644 index b10a527a92a4..000000000000 --- a/include/linux/input/ti_tscadc.h +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | #ifndef __LINUX_TI_TSCADC_H | ||
2 | #define __LINUX_TI_TSCADC_H | ||
3 | |||
4 | /** | ||
5 | * struct tsc_data Touchscreen wire configuration | ||
6 | * @wires: Wires refer to application modes | ||
7 | * i.e. 4/5/8 wire touchscreen support | ||
8 | * on the platform. | ||
9 | * @x_plate_resistance: X plate resistance. | ||
10 | */ | ||
11 | |||
12 | struct tsc_data { | ||
13 | int wires; | ||
14 | int x_plate_resistance; | ||
15 | }; | ||
16 | |||
17 | #endif | ||