diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2011-05-17 12:32:02 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-05-17 12:38:49 -0400 |
commit | 1af38eac8cdb70dbad3086b4f1bf7296eb1b09b1 (patch) | |
tree | 74a251236e74d963592da41cde26b60fe33b6f0a /include | |
parent | 2d137c7ed25f9754f52495af570897ad993e4fe7 (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')
-rw-r--r-- | include/linux/i2c/tsc2007.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c/tsc2007.h b/include/linux/i2c/tsc2007.h index 342b130a0a9..a51dac081ac 100644 --- a/include/linux/i2c/tsc2007.h +++ b/include/linux/i2c/tsc2007.h | |||
@@ -9,6 +9,7 @@ struct tsc2007_platform_data { | |||
9 | u16 max_rt; /* max. resistance above which samples are ignored */ | 9 | u16 max_rt; /* max. resistance above which samples are ignored */ |
10 | unsigned long poll_delay; /* delay (in ms) after pen-down event | 10 | unsigned long poll_delay; /* delay (in ms) after pen-down event |
11 | before polling starts */ | 11 | before polling starts */ |
12 | unsigned long poll_period; /* time (in ms) between samples */ | ||
12 | 13 | ||
13 | int (*get_pendown_state)(void); | 14 | int (*get_pendown_state)(void); |
14 | void (*clear_penirq)(void); /* If needed, clear 2nd level | 15 | void (*clear_penirq)(void); /* If needed, clear 2nd level |