diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-01-20 23:05:17 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-01-20 23:13:29 -0800 |
commit | cb1b145929b5b7e1bdc5f76dd2905df9f89c038e (patch) | |
tree | 42baec1af85ba0bcf9ac58d070185dc2219e12b3 /drivers/input | |
parent | 11f5b30dacdd77bee1028764d91ad58b6c73d50c (diff) | |
download | lwn-cb1b145929b5b7e1bdc5f76dd2905df9f89c038e.tar.gz lwn-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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/sparse-keymap.c | 1 |
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; |