]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
asus-wmi: Enable autorepeat for hotkey input device
authorSeth Forshee <seth.forshee@canonical.com>
Mon, 4 Jul 2011 07:49:20 +0000 (09:49 +0200)
committerMatthew Garrett <mjg@redhat.com>
Mon, 11 Jul 2011 13:43:24 +0000 (09:43 -0400)
The T101MT Home/Express Gate key autorepeats in hardware, but
sparse-keymap does not support hardware autorepeat. Enable the
input core's software autorepeat to emulate the hardware behavior.
Normal hotkeys are autoreleased, so the behavior of these keys
will not be affected.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-wmi.c

index 34a991af13536039325f63b5b437e90a0b2375c0..3e6e2a59e7ea510ab09d0d8f2fb971720046cfb6 100644 (file)
@@ -205,6 +205,7 @@ static int asus_wmi_input_init(struct asus_wmi *asus)
        asus->inputdev->phys = asus->driver->input_phys;
        asus->inputdev->id.bustype = BUS_HOST;
        asus->inputdev->dev.parent = &asus->platform_device->dev;
+       set_bit(EV_REP, asus->inputdev->evbit);
 
        err = sparse_keymap_setup(asus->inputdev, asus->driver->keymap, NULL);
        if (err)