projects/linux·commit e41fb09b

[PATCH] ALPS: fix enabling hardware tapping

e41fb09b · Dmitry Torokhov <[email protected]> · 2005-06-15 22:26:36 -07:00

It looks like logic for enabling hardware tapping in ALPS driver was
inverted and we enable it only if it was already enabled by BIOS or
firmware.

I have a confirmation from one user that the patch below fixes the problem
for him and it might be beneficial if we could get it into 2.6.12.

Signed-off-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
e41fb09b2fa15db095d3ee981299f488d7b48dfe
Parents
5db92850

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/input/mouse/alps.cmodified+1−1View file

drivers/input/mouse/alps.c

View file
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c
index 42a9f7f..7bf4be7 100644
--- a/drivers/input/mouse/alps.c
+++ b/drivers/input/mouse/alps.c
@@ -352,7 +352,7 @@ static int alps_reconnect(struct psmouse *psmouse)
if (alps_get_status(psmouse, param))
return -1;
- if (param[0] & 0x04)
+ if (!(param[0] & 0x04))
alps_tap_mode(psmouse, 1);
if (alps_absolute_mode(psmouse)) {