]> Git Repo - linux.git/commitdiff
Input: ili210x - reduce sample period to 15ms
authorMarek Vasut <[email protected]>
Wed, 10 Nov 2021 06:17:49 +0000 (22:17 -0800)
committerDmitry Torokhov <[email protected]>
Wed, 10 Nov 2021 06:23:02 +0000 (22:23 -0800)
Modern devices may redraw display at 60 Hz, make sure we have one input
sample per one frame. Reduce sample period to 15ms, so we would get up
to 66.6 samples per second, although realistically with all the jitter
and extra scheduling wiggle room, we would end up just above 60 samples
per second. This should be a good compromise between sampling too often
and sampling too seldom.

Signed-off-by: Marek Vasut <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/touchscreen/ili210x.c

index de81ba77ffc7138371c7703421c2bd354a361120..2bd407d86bae529648d6e142da48f7343adcbab8 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/slab.h>
 #include <asm/unaligned.h>
 
-#define ILI2XXX_POLL_PERIOD    20
+#define ILI2XXX_POLL_PERIOD    15
 
 #define ILI210X_DATA_SIZE      64
 #define ILI211X_DATA_SIZE      43
This page took 0.055454 seconds and 4 git commands to generate.