]> git.hungrycats.org Git - linux/commitdiff
input: Fix broken handling of rotated Synaptics touchpads.
authorPeter Osterlund <petero2@telia.com>
Fri, 26 Sep 2003 10:57:35 +0000 (12:57 +0200)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 26 Sep 2003 10:57:35 +0000 (12:57 +0200)
       The infoRot180 and infoPortrait bits are for information
       only. The touchpad uses the same X/Y coordinate system
       regardless of the orientation, so the software shouldn't
       care about these bits.

drivers/input/mouse/synaptics.c

index 1353a26427f55754cea6ea998a1629f66813a561..d39cf3d4288b8cf7831b6943dec95ff434544db8 100644 (file)
@@ -528,10 +528,7 @@ static void synaptics_process_packet(struct psmouse *psmouse)
        /* Post events */
        if (hw.z > 0) {
                input_report_abs(dev, ABS_X, hw.x);
-               if (SYN_MODEL_ROT180(priv->model_id))
-                       input_report_abs(dev, ABS_Y, YMAX_NOMINAL + YMIN_NOMINAL - hw.y);
-               else
-                       input_report_abs(dev, ABS_Y, hw.y);
+               input_report_abs(dev, ABS_Y, YMAX_NOMINAL + YMIN_NOMINAL - hw.y);
        }
        input_report_abs(dev, ABS_PRESSURE, hw.z);