Commit ee3e946e authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Dmitry Torokhov

Input: edt-ft5x06 - ignore touchdown events

The chip may report invalid coordinates on touchdown events, so don't
report the initial touchdown event.
Signed-off-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
Acked-by: default avatarFugang Duan <B38611@freescale.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent c0808467
...@@ -176,6 +176,10 @@ static irqreturn_t edt_ft5x06_ts_isr(int irq, void *dev_id) ...@@ -176,6 +176,10 @@ static irqreturn_t edt_ft5x06_ts_isr(int irq, void *dev_id)
if (type == TOUCH_EVENT_RESERVED) if (type == TOUCH_EVENT_RESERVED)
continue; continue;
/* ignore TOUCH_DOWN events, might have bogus coordinates */
if (type == TOUCH_EVENT_DOWN)
continue;
x = ((buf[0] << 8) | buf[1]) & 0x0fff; x = ((buf[0] << 8) | buf[1]) & 0x0fff;
y = ((buf[2] << 8) | buf[3]) & 0x0fff; y = ((buf[2] << 8) | buf[3]) & 0x0fff;
id = (buf[2] >> 4) & 0x0f; id = (buf[2] >> 4) & 0x0f;
......
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