Input: hgpk - extend jumpiness detection
authorDaniel Drake <dsd@laptop.org>
Fri, 12 Nov 2010 06:20:03 +0000 (22:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 12 Nov 2010 06:21:24 +0000 (22:21 -0800)
commita309cdc778b9eece59b34e9e1c26e41476dbbcd6
tree40dba65fd78c058f8dd28d5972707ea4f09f0fdb
parentc0dc8342656a1425c31dcc505072f2387f0f0c92
Input: hgpk - extend jumpiness detection

In addition to forcing recalibrations upon detection of cursor jumps (and
performing them quicker than before), detect and discard errant 'jump'
packets caused by a firmware bug, which are then repeated with each one
being approximately half the delta of the one previously (as if it is
averaging out)

Based on original work by Paul Fox.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/hgpk.c
drivers/input/mouse/hgpk.h