summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2011-05-11 16:24:08 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-05-12 08:28:56 -0700
commitebcaaad9d5e8fd284b8dcf25a24999420f0f56d8 (patch)
tree041e210499460d21c7acb75ced6b819f88bb4749 /include/linux/spi
parente70bdd41bd0ead91b4a43e9d656ac1569d7c8779 (diff)
downloadop-kernel-dev-ebcaaad9d5e8fd284b8dcf25a24999420f0f56d8.zip
op-kernel-dev-ebcaaad9d5e8fd284b8dcf25a24999420f0f56d8.tar.gz
Input: ads7846 - add possibility to use external vref on ads7846
Just set vref_mv in your platform config to use external vref. Otherwise the internal one is used. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/spi')
-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 92bd083..c64de9d 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, 7873. */
u16 vref_delay_usecs; /* 0 for external vref; etc */
- u16 vref_mv; /* external vref value, milliVolts */
+ u16 vref_mv; /* external vref value, milliVolts
+ * ads7846: if 0, use internal vref */
bool keep_vref_on; /* set to keep vref on for differential
* measurements as well */
bool swap_xy; /* swap x and y axes */
OpenPOWER on IntegriCloud