Preparing to move more repeated code into the mt core, add a flags argument to the input_mt_slots_init() function.
Showing the changes to include/linux/input (1 of 18 files). Show all
Unified · Split
| @@ -28,12 +28,14 @@ struct input_mt_slot { · 27 unmodified lines | ||
| 28 | 28 | * @trkid: stores MT tracking ID for the next contact |
| 29 | 29 | * @num_slots: number of MT slots the device uses |
| 30 | 30 | * @slot: MT slot currently being transmitted |
| 31 | + * @flags: input_mt operation flags | |
| 31 | 32 | * @slots: array of slots holding current values of tracked contacts |
| 32 | 33 | */ |
| 33 | 34 | struct input_mt { |
| 34 | 35 | int trkid; |
| 35 | 36 | int num_slots; |
| 36 | 37 | int slot; |
| 38 | + unsigned int flags; | |
| 37 | 39 | struct input_mt_slot slots[]; |
| 38 | 40 | }; |
| 39 | 41 | |
| @@ -49,7 +51,8 @@ static inline int input_mt_get_value(const struct input_mt_slot *slot, · 9 unmodified lines | ||
| 49 | 51 | return slot->abs[code - ABS_MT_FIRST]; |
| 50 | 52 | } |
| 51 | 53 | |
| 52 | −int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots); | |
| 54 | +int input_mt_init_slots(struct input_dev *dev, unsigned int num_slots, | |
| 55 | + unsigned int flags); | |
| 53 | 56 | void input_mt_destroy_slots(struct input_dev *dev); |
| 54 | 57 | |
| 55 | 58 | static inline int input_mt_new_trkid(struct input_mt *mt) |