Input: sparse-keymap - fix KEY_VSW handling in sparse_keymap_setup
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 21 Jan 2011 07:05:17 +0000 (23:05 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 21 Jan 2011 07:13:29 +0000 (23:13 -0800)
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>
drivers/input/sparse-keymap.c

index a29a7812bd46cea26613b813a3091eed476077aa..7729e547ba65d853581e115a4ce6428883549ecd 100644 (file)
@@ -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;