Skip to content

Commit 27931d3

Browse files
Marek Vasutdtor
authored andcommitted
Input: ili210x - reduce sample period to 15ms
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]>
1 parent 8639e04 commit 27931d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/touchscreen/ili210x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <linux/slab.h>
1515
#include <asm/unaligned.h>
1616

17-
#define ILI2XXX_POLL_PERIOD 20
17+
#define ILI2XXX_POLL_PERIOD 15
1818

1919
#define ILI210X_DATA_SIZE 64
2020
#define ILI211X_DATA_SIZE 43

0 commit comments

Comments
 (0)