Commit cb1b1459 authored by Dmitry Torokhov's avatar Dmitry Torokhov

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: default avatarTapio Vihuri <tapio.vihuri@nokia.com>
Tested-by: default avatarTapio Vihuri <tapio.vihuri@nokia.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 11f5b30d
...@@ -201,6 +201,7 @@ int sparse_keymap_setup(struct input_dev *dev, ...@@ -201,6 +201,7 @@ int sparse_keymap_setup(struct input_dev *dev,
break; break;
case KE_SW: case KE_SW:
case KE_VSW:
__set_bit(EV_SW, dev->evbit); __set_bit(EV_SW, dev->evbit);
__set_bit(entry->sw.code, dev->swbit); __set_bit(entry->sw.code, dev->swbit);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment