summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2012-01-12 22:40:34 +0400
committerHenrik Rydberg <rydberg@euromail.se>2012-02-02 17:42:20 +0400
commitb89529a10c954f14191367355da2a6053c49abb9 (patch)
tree89b69d46d9ce55cf96d8586a9468de3fb5fbb694 /drivers/input
parent62aa2b537c6f5957afd98e29f96897419ed5ebab (diff)
downloadlinux-b89529a10c954f14191367355da2a6053c49abb9.tar.xz
Input: Use accessor for MT values
The current MT accessor function does not distinguish between the MT values and the slot specification event. Add an accessor function for the values only, and use it where appropriate. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 1f78c957a75a..8921c6180c51 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -180,7 +180,7 @@ static int input_handle_abs_event(struct input_dev *dev,
return INPUT_IGNORE_EVENT;
}
- is_mt_event = code >= ABS_MT_FIRST && code <= ABS_MT_LAST;
+ is_mt_event = input_is_mt_value(code);
if (!is_mt_event) {
pold = &dev->absinfo[code].value;