]> Pileus Git - ~andy/linux/commit
Input: wm97xx - drop out of range inputs
authorMarkus Pargmann <mpa@pengutronix.de>
Sat, 9 Mar 2013 23:19:56 +0000 (15:19 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Mar 2013 15:50:18 +0000 (08:50 -0700)
commitcfd5d09691ee188a36c00f5c3b220fbf082a78d7
tree171b6981f09a93f9fe3e72ab7cd69222aae35bc8
parentb4a034dab147776eab8eb8b2997ea16ef0e32c17
Input: wm97xx - drop out of range inputs

With fast movements, there occured some out of screen jumps with my
touchscreen. The abs_x and abs_y module parameters should fix this by
default, but the driver doesn't actively checks the x/y coordinates.

Instead it seems that the input layer was supposed to drop out of range
inputs, as described in the comments:
"These parameters are used to help the input layer discard out of
range readings and reduce jitter etc"

The input layer documentation describes that values that are not in the
absolute range are also accepted.

So this patch adds a check within the driver.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/wm97xx-core.c