Input: sparse-keymap - fix KEY_VSW handling in sparse_keymap_setup
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>
This commit is contained in:
parent
11f5b30dac
commit
cb1b145929
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue