Skip to content

Commit

Permalink
Input: sparse-keymap - fix KEY_VSW handling in sparse_keymap_setup
Browse files Browse the repository at this point in the history
We were forgetting to set up device capabilities for KEY_VSW entries.

Reported-by: Tapio Vihuri <tapio.vihuri@nokia.com>
Tested-by: Tapio Vihuri <tapio.vihuri@nokia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Jan 21, 2011
1 parent 11f5b30 commit cb1b145
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/sparse-keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ int sparse_keymap_setup(struct input_dev *dev,
break;

case KE_SW:
case KE_VSW:
__set_bit(EV_SW, dev->evbit);
__set_bit(entry->sw.code, dev->swbit);
break;
Expand Down

0 comments on commit cb1b145

Please sign in to comment.