提交 cb1b1459 编写于 作者: D 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: NTapio Vihuri <tapio.vihuri@nokia.com>
Tested-by: NTapio Vihuri <tapio.vihuri@nokia.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 11f5b30d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册