projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
450aae0
)
Input: elantech - do not advertise relative events
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Tue, 17 Nov 2009 06:12:21 +0000
(22:12 -0800)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/input/mouse/elantech.c
b/drivers/input/mouse/elantech.c
index fda35e615abf9c7b594d905dfed0027575e78a49..b27684f267bf815ac30b2ba6fcd7deab01532b36 100644
(file)
--- a/
drivers/input/mouse/elantech.c
+++ b/
drivers/input/mouse/elantech.c
@@
-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);