]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Input: elantech - do not advertise relative events
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 17 Nov 2009 06:12:21 +0000 (22:12 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:05 +0000 (15:55 -0700)
commit c7a1f3ccfc2f99427f2e1545b3171e98539c3c95 upstream.

Elantech touchpads work in absolute mode and do not generate relative
events so they should not be advertising them.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/mouse/elantech.c

index fda35e615abf9c7b594d905dfed0027575e78a49..b27684f267bf815ac30b2ba6fcd7deab01532b36 100644 (file)
@@ -420,6 +420,7 @@ static void elantech_set_input_params(struct psmouse *psmouse)
 
        __set_bit(EV_KEY, dev->evbit);
        __set_bit(EV_ABS, dev->evbit);
+       __clear_bit(EV_REL, dev->evbit);
 
        __set_bit(BTN_LEFT, dev->keybit);
        __set_bit(BTN_RIGHT, dev->keybit);