aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorImre Deak <[email protected]>2007-01-18 00:45:21 -0500
committerDmitry Torokhov <[email protected]>2007-01-18 00:45:21 -0500
commitde2defd96d7d92fe8b5f9cf2bfd385d8d4819923 (patch)
tree191349b9480dca988f6d776db0a0b00ff10bffca /include/linux
parentda970e69efb9fd0be0c23ace5bde42d4caf17b40 (diff)
Input: ads7846 - optionally leave Vref on during differential measurements
On some LCDs leaving the Vref on provides much better readings. Signed-off-by: Jarkko Oikarinen <[email protected]> Signed-off-by: Imre Deak <[email protected]> Signed-off-by: Juha Yrjola <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/spi/ads7846.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h
index 1663f940ca11..3387e44dfd13 100644
--- a/include/linux/spi/ads7846.h
+++ b/include/linux/spi/ads7846.h
@@ -14,6 +14,8 @@ enum ads7846_filter {
struct ads7846_platform_data {
u16 model; /* 7843, 7845, 7846. */
u16 vref_delay_usecs; /* 0 for external vref; etc */
+ int keep_vref_on:1; /* set to keep vref on for differential
+ * measurements as well */
u16 x_plate_ohms;
u16 y_plate_ohms;