Input: mt: add input_mt_is_used
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Wed, 14 Nov 2012 15:59:22 +0000 (16:59 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 15 Nov 2012 09:16:56 +0000 (10:16 +0100)
commit29807d1e24b7cd696442d2f600057230f084b3c7
tree9fa7122a4c5c7cb6109c092e48a639f57e079b26
parentaf8036dd749fbf4e732161ff0f3874759b73be40
Input: mt: add input_mt_is_used

This patch extracts the test (slot->frame == mt->frame) so that it can
be used in third party drivers.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/input/input-mt.c
include/linux/input/mt.h