From c88d81805bccaa61ddf4f3308b6bfb282e4967a3 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Fri, 26 Sep 2003 12:57:35 +0200 Subject: [PATCH] input: Fix broken handling of rotated Synaptics touchpads. 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 1353a26427f55..d39cf3d4288b8 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -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); -- 2.53.0