summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2011-01-20 23:05:17 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-01-20 23:13:29 -0800
commitcb1b145929b5b7e1bdc5f76dd2905df9f89c038e (patch)
tree42baec1af85ba0bcf9ac58d070185dc2219e12b3
parent11f5b30dacdd77bee1028764d91ad58b6c73d50c (diff)
downloadlinux-stable-cb1b145929b5b7e1bdc5f76dd2905df9f89c038e.tar.gz
linux-stable-cb1b145929b5b7e1bdc5f76dd2905df9f89c038e.tar.bz2
linux-stable-cb1b145929b5b7e1bdc5f76dd2905df9f89c038e.zip
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>
-rw-r--r--drivers/input/sparse-keymap.c1
1 files changed, 1 insertions, 0 deletions
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;