Commit c88d8180 authored by Peter Osterlund's avatar Peter Osterlund Committed by Linus Torvalds

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.
parent 7d9f7f7e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment