[Quantal][PATCH] UBUNTU: SAUCE: input: Cypress PS/2 Trackpad move PSMOUSE_CYPRESS enum
Kamal Mostafa
kamal at canonical.com
Thu Sep 6 21:28:29 UTC 2012
Bug reference:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1041594
Edge scrolling on ALPS touchpad broken since the upgrade to 3.5.0-11
Thanks,
-Kamal
----------
commit 32b7bb1aa831a7780d7418a7ec829d7216c2a962
Author: Kamal Mostafa <kamal at canonical.com>
Date: Thu Sep 6 12:53:40 2012 -0700
UBUNTU: SAUCE: input: Cypress PS/2 Trackpad move PSMOUSE_CYPRESS enum
Move PSMOUSE_CYPRESS to the end of the enum, since awful
src/eventcomm.c in x-x-i-s actually depends on hardcoded values
of the model numbers (including MODEL_ALPS). *sigh*
BugLink: http://launchpad.net/bugs/1041594
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
diff --git a/drivers/input/mouse/psmouse.h b/drivers/input/mouse/psmouse.h
index ed788d0..148286b 100644
--- a/drivers/input/mouse/psmouse.h
+++ b/drivers/input/mouse/psmouse.h
@@ -79,6 +79,9 @@ struct psmouse {
};
enum psmouse_type {
+ /* IMPORTANT! src/eventcomm.c in x-x-i-s uses the hard-coded values
+ * of some of these (awful!), so never insert new entries to the
+ * middle of the list! */
PSMOUSE_NONE,
PSMOUSE_PS2,
PSMOUSE_PS2PP,
@@ -87,7 +90,6 @@ enum psmouse_type {
PSMOUSE_IMPS,
PSMOUSE_IMEX,
PSMOUSE_SYNAPTICS,
- PSMOUSE_CYPRESS,
PSMOUSE_ALPS,
PSMOUSE_LIFEBOOK,
PSMOUSE_TRACKPOINT,
@@ -97,6 +99,7 @@ enum psmouse_type {
PSMOUSE_ELANTECH,
PSMOUSE_FSP,
PSMOUSE_SYNAPTICS_RELATIVE,
+ PSMOUSE_CYPRESS,
PSMOUSE_AUTO /* This one should always be last */
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20120906/181ded2b/attachment.sig>
More information about the kernel-team
mailing list