summaryrefslogtreecommitdiff
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2011-05-17 09:32:02 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-05-17 09:38:49 -0700
commit1af38eac8cdb70dbad3086b4f1bf7296eb1b09b1 (patch)
tree74a251236e74d963592da41cde26b60fe33b6f0a /include/linux/i2c
parent2d137c7ed25f9754f52495af570897ad993e4fe7 (diff)
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>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r--include/linux/i2c/tsc2007.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c/tsc2007.h b/include/linux/i2c/tsc2007.h
index 342b130a0a98..a51dac081aca 100644
--- a/include/linux/i2c/tsc2007.h
+++ b/include/linux/i2c/tsc2007.h
@@ -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