[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>
This commit is contained in:
parent
87e807b6c4
commit
ff13f98b97
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue