diff options
Diffstat (limited to 'include/linux/spi/ads7846.h')
-rw-r--r-- | include/linux/spi/ads7846.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h index adb3dafd33e9..1663f940ca11 100644 --- a/include/linux/spi/ads7846.h +++ b/include/linux/spi/ads7846.h | |||
@@ -5,6 +5,12 @@ | |||
5 | * | 5 | * |
6 | * It's OK if the min/max values are zero. | 6 | * It's OK if the min/max values are zero. |
7 | */ | 7 | */ |
8 | enum ads7846_filter { | ||
9 | ADS7846_FILTER_OK, | ||
10 | ADS7846_FILTER_REPEAT, | ||
11 | ADS7846_FILTER_IGNORE, | ||
12 | }; | ||
13 | |||
8 | struct ads7846_platform_data { | 14 | struct ads7846_platform_data { |
9 | u16 model; /* 7843, 7845, 7846. */ | 15 | u16 model; /* 7843, 7845, 7846. */ |
10 | u16 vref_delay_usecs; /* 0 for external vref; etc */ | 16 | u16 vref_delay_usecs; /* 0 for external vref; etc */ |
@@ -21,5 +27,9 @@ struct ads7846_platform_data { | |||
21 | u16 debounce_rep; /* additional consecutive good readings | 27 | u16 debounce_rep; /* additional consecutive good readings |
22 | * required after the first two */ | 28 | * required after the first two */ |
23 | int (*get_pendown_state)(void); | 29 | int (*get_pendown_state)(void); |
30 | int (*filter_init) (struct ads7846_platform_data *pdata, | ||
31 | void **filter_data); | ||
32 | int (*filter) (void *filter_data, int data_idx, int *val); | ||
33 | void (*filter_cleanup)(void *filter_data); | ||
24 | }; | 34 | }; |
25 | 35 | ||