aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2011-01-21 02:05:17 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-01-21 02:13:29 -0500
commitcb1b145929b5b7e1bdc5f76dd2905df9f89c038e (patch)
tree42baec1af85ba0bcf9ac58d070185dc2219e12b3 /drivers/input
parent11f5b30dacdd77bee1028764d91ad58b6c73d50c (diff)
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>
Diffstat (limited to 'drivers/input')
-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,
201 break; 201 break;
202 202
203 case KE_SW: 203 case KE_SW:
204 case KE_VSW:
204 __set_bit(EV_SW, dev->evbit); 205 __set_bit(EV_SW, dev->evbit);
205 __set_bit(entry->sw.code, dev->swbit); 206 __set_bit(entry->sw.code, dev->swbit);
206 break; 207 break;