Input: tsc2007 - add poll_period parameter to platform data

This new parameter allows the polling frequency to be configured while
keeping the default of once every millisecond.

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:32:02 -07:00 committed by Dmitry Torokhov
parent 2d137c7ed2
commit 1af38eac8c
2 changed files with 4 additions and 3 deletions

View file

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