From: JJ Ding <dgdunix@xxxxxxxxx> This makes the driver resemble the bebavior documented in Documentation/input/elantech.txt Signed-off-by: JJ Ding <dgdunix@xxxxxxxxx> --- drivers/input/mouse/elantech.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index d2c0db1..674cd78 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -728,7 +728,7 @@ static psmouse_ret_t elantech_process_byte(struct psmouse *psmouse) switch (etd->hw_version) { case 1: if (etd->paritycheck && !elantech_packet_check_v1(psmouse)) - return PSMOUSE_BAD_DATA; + return PSMOUSE_SHIFT_PACKET; elantech_report_absolute_v1(psmouse); break; @@ -739,7 +739,7 @@ static psmouse_ret_t elantech_process_byte(struct psmouse *psmouse) return PSMOUSE_FULL_PACKET; if (etd->paritycheck && !elantech_packet_check_v2(psmouse)) - return PSMOUSE_BAD_DATA; + return PSMOUSE_SHIFT_PACKET; elantech_report_absolute_v2(psmouse); break; @@ -751,7 +751,7 @@ static psmouse_ret_t elantech_process_byte(struct psmouse *psmouse) return PSMOUSE_FULL_PACKET; if (packet_type == PACKET_UNKNOWN) - return PSMOUSE_BAD_DATA; + return PSMOUSE_SHIFT_PACKET; elantech_report_absolute_v3(psmouse, packet_type); break; -- 1.7.8 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html