Input: tsc2007 - add poll_delay parameter to platform data

Depending on the quality of the touch panel, the time for the X-, X+, Y-
and Y+ inputs to settle may vary. The poll_delay parameter can be used
to override the default of 1 millisecond.

Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Kwangwoo Lee <kwangwoo.lee@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Thierry Reding
2011-05-17 09:31:33 -07:00
committed by Dmitry Torokhov
parent 84005eb5ea
commit 2d137c7ed2
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,8 @@ struct tsc2007_platform_data {
u16 model; /* 2007. */
u16 x_plate_ohms;
u16 max_rt; /* max. resistance above which samples are ignored */
unsigned long poll_delay; /* delay (in ms) after pen-down event
before polling starts */
int (*get_pendown_state)(void);
void (*clear_penirq)(void); /* If needed, clear 2nd level