Skip to content

Commit

Permalink
[PATCH] Input: check switch bitmap when matching handlers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov authored and Linus Torvalds committed Sep 24, 2005
1 parent 87e807b commit ff13f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ff13f98

Please sign in to comment.