From: Gabriel M. Beddingfield <[email protected]>

This is a backport of commit 47c78e891323513e9909729b44033e2c6649e2b7:

    From: Henrik Rydberg <[email protected]>
    Date: Sat, 27 Nov 2010 09:16:48 +0100
    Subject: [PATCH] input: mt: Break out slots handling

    In preparation for common code to handle a larger set of MT slots
    devices, move the slots handling over to a separate file.

    Signed-off-by: Henrik Rydberg <[email protected]>

Signed-off-by: Gabriel M. Beddingfield <[email protected]>
---
 include/linux/input.h |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/include/linux/input.h b/include/linux/input.h
index 9777668..bc121a8 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -1493,6 +1493,24 @@ static inline void input_mt_slot(struct input_dev *dev, 
int slot)
        input_event(dev, EV_ABS, ABS_MT_SLOT, slot);
 }
 
+static inline void input_mt_set_value(struct input_mt_slot *slot,
+                                     unsigned code, int value)
+{
+       slot->abs[code - ABS_MT_FIRST] = value;
+}
+
+static inline int input_mt_get_value(const struct input_mt_slot *slot,
+                                    unsigned code)
+{
+       return slot->abs[code - ABS_MT_FIRST];
+}
+
+void input_mt_report_slot_state(struct input_dev *dev,
+                               unsigned int tool_type, bool active);
+
+void input_mt_report_finger_count(struct input_dev *dev, int count);
+void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count);
+
 void input_set_capability(struct input_dev *dev, unsigned int type, unsigned 
int code);
 
 /**
-- 
1.7.0.4

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to