| Date | Thu, 05 May 2011 17:20:35 -0700 | From | Greg KH <> | Subject | [050/143] Input: elantech - do not advertise relative events |
| |
2.6.32-longterm review patch. If anyone has any objections, please let us know.
------------------
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
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 | 1 + 1 file changed, 1 insertion(+)
--- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -420,6 +420,7 @@ static void elantech_set_input_params(st __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);
|