Input: psmouse - rework setting of BTN_MIDDLE capability
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 17 Nov 2009 06:12:21 +0000 (22:12 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 20 Nov 2009 08:52:12 +0000 (00:52 -0800)
commit315eb996d5505112b22452ccbc7e01fb02eaae81
tree86abf8a390575efe1bc0b678dbd27310ff351f59
parent0cc1770b66ddc2524ab5f0ed6ba5f2df19d6414a
Input: psmouse - rework setting of BTN_MIDDLE capability

Do not start protocol detection assuming that middle mouse is present,
instead let individual protocols explicitly set this capability.
This fixes issue with Synaptics touchpads pretending that they have
middle button when hardware clearly reports otherwise.

Reported-and-tested-by: Andrey Borzenkov <arvidjaar@mail.ru>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/hgpk.c
drivers/input/mouse/logips2pp.c
drivers/input/mouse/psmouse-base.c
drivers/input/mouse/sentelic.c
drivers/input/mouse/trackpoint.c