summaryrefslogtreecommitdiff
path: root/include/linux/spi/ads7846.h
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2008-04-02 00:43:01 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-04-02 00:43:01 -0400
commit7c6d0ee14cb7a4cfad4864dc196256da5749bc0c (patch)
treea24af9205d80605d6e4b01693b652f9837071e5c /include/linux/spi/ads7846.h
parente6cdd15629a5a99d805fa3cbf0f5174bcfc685bb (diff)
Input: ads7846 - simplify support of external vREF (and ads7843)
This updates the ads7846 driver to handle external vREF (required on boards using ads7843 chips) without module parameters, and also removes a needless variable with its associated bogus gcc warning. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/spi/ads7846.h')
-rw-r--r--include/linux/spi/ads7846.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h
index 334d31411629..daf744017a31 100644
--- a/include/linux/spi/ads7846.h
+++ b/include/linux/spi/ads7846.h
@@ -14,7 +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
+ u16 vref_mv; /* external vref value, milliVolts */
+ bool keep_vref_on; /* set to keep vref on for differential
* measurements as well */
/* Settling time of the analog signals; a function of Vcc and the