summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-09-24 02:02:29 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-24 10:44:25 -0700
commitff13f98b97cb6c5a2d201dfa4db0a2fd0b4d9d50 (patch)
treebce3878acb3cafa95267bb1c95bb5031e7b52e79 /drivers/input
parent87e807b6c461bbd449496a4c3ab78ab164a4ba97 (diff)
downloadlinux-next-ff13f98b97cb6c5a2d201dfa4db0a2fd0b4d9d50.tar.gz
[PATCH] Input: check switch bitmap when matching handlers
The wwitch bitmap was added to input_device_id structure and we should check it when matching handlers and input devices. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 88636a204525..14ae5583e198 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -308,6 +308,7 @@ static struct input_device_id *input_match_device(struct input_device_id *id, st
MATCH_BIT(ledbit, LED_MAX);
MATCH_BIT(sndbit, SND_MAX);
MATCH_BIT(ffbit, FF_MAX);
+ MATCH_BIT(swbit, SW_MAX);
return id;
}