[PATCH] Input: check switch bitmap when matching handlers
authorDmitry Torokhov <dtor_core@ameritech.net>
Sat, 24 Sep 2005 07:02:29 +0000 (02:02 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 24 Sep 2005 17:44:25 +0000 (10:44 -0700)
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>
drivers/input/input.c

index 88636a204525e84862972ea7034c02ae020ae4bb..14ae5583e198fa9669bf8f9a70b9a86a8fe32009 100644 (file)
@@ -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;
        }