From: Dmitry Torokhov Date: Fri, 21 Jan 2011 07:05:17 +0000 (-0800) Subject: Input: sparse-keymap - fix KEY_VSW handling in sparse_keymap_setup X-Git-Tag: Ubuntu-5.2.0-15.16~22158^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cb1b145929b5b7e1bdc5f76dd2905df9f89c038e;p=mirror_ubuntu-eoan-kernel.git 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 Tested-by: Tapio Vihuri Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/sparse-keymap.c b/drivers/input/sparse-keymap.c index a29a7812bd46..7729e547ba65 100644 --- a/drivers/input/sparse-keymap.c +++ b/drivers/input/sparse-keymap.c @@ -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;