]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Input: spitzkbd - fix suspend key handling
authorRichard Purdie <rpurdie@rpsys.net>
Thu, 3 Jan 2008 15:46:13 +0000 (10:46 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Jan 2008 15:46:13 +0000 (10:46 -0500)
The spitz keyboard driver reports KEY_SUSPEND events but doesn't
register its use of this event in the keybit bitfield, breaking
input events for this key. This patch fixes that by registering
the key in the keybit bitfield.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/spitzkbd.c

index 410d78a774d03c2eab0ce95a1fd608f73df09436..1d59a2dc3c17c57a6a18110e73a6128bceb28073 100644 (file)
@@ -391,6 +391,7 @@ static int __init spitzkbd_probe(struct platform_device *dev)
        for (i = 0; i < ARRAY_SIZE(spitzkbd_keycode); i++)
                set_bit(spitzkbd->keycode[i], input_dev->keybit);
        clear_bit(0, input_dev->keybit);
+       set_bit(KEY_SUSPEND, input_dev->keybit);
        set_bit(SW_LID, input_dev->swbit);
        set_bit(SW_TABLET_MODE, input_dev->swbit);
        set_bit(SW_HEADPHONE_INSERT, input_dev->swbit);