summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver/touchpad_elan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/touchpad_elan.c b/driver/touchpad_elan.c
index d876c76fb9..9cc399ae6e 100644
--- a/driver/touchpad_elan.c
+++ b/driver/touchpad_elan.c
@@ -227,8 +227,8 @@ static int elan_tp_read_report(void)
int valid = touch_info & (1 << (3+i));
if (valid) {
- int width = (finger[3] & 0xf0) >> 4;
- int height = finger[3] & 0x0f;
+ int width = finger[3] & 0x0f;
+ int height = (finger[3] & 0xf0) >> 4;
int pressure = finger[4] + elan_tp_params.pressure_adj;
pressure = DIV_ROUND_NEAREST(pressure * pressure_mult,
pressure_div);