Skip to content

Commit

Permalink
Input: ili210x - reduce sample period to 15ms
Browse files Browse the repository at this point in the history
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 <marex@denx.de>
Link: https://lore.kernel.org/r/20211108114145.84118-1-marex@denx.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Marek Vasut authored and Dmitry Torokhov committed Nov 10, 2021
1 parent 8639e04 commit 27931d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/ili210x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27931d3

Please sign in to comment.