History

Input: MT - Add flags to input_mt_init_slots()

Preparing to move more repeated code into the mt core, add a flags argument to the input_mt_slots_init() function.

Henrik Rydberg committed 14 years ago

Commit b4adbbe1 parent a274ac118 files · +27 −22Browse files

Showing the changes to include/linux/input (1 of 18 files). Show all

Unified · Split

include/linux/input/mt.h+4−1
@@ -28,12 +28,14 @@ struct input_mt_slot { · 27 unmodified lines
2828 * @trkid: stores MT tracking ID for the next contact
2929 * @num_slots: number of MT slots the device uses
3030 * @slot: MT slot currently being transmitted
31+ * @flags: input_mt operation flags
3132 * @slots: array of slots holding current values of tracked contacts
3233 */
3334 struct input_mt {
3435 int trkid;
3536 int num_slots;
3637 int slot;
38+ unsigned int flags;
3739 struct input_mt_slot slots[];
3840 };
3941
@@ -49,7 +51,8 @@ static inline int input_mt_get_value(const struct input_mt_slot *slot, · 9 unmodified lines
4951 return slot->abs[code - ABS_MT_FIRST];
5052 }
5153
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);
5356 void input_mt_destroy_slots(struct input_dev *dev);
5457
5558 static inline int input_mt_new_trkid(struct input_mt *mt)