aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2009-12-02 13:54:31 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2009-12-13 13:21:57 -0500
commitbe26d664de1a6333156bd586a2f795271cfcf170 (patch)
tree3530b8d00a636fa39674264a3efa78d4de16758a /drivers/mfd
parented89a7551c65e1db44f1a6b7be6efce178fc87d0 (diff)
mfd: Don't set mc13783 ADREFMODE for touch conversions
Setting ADREFMODE is utter nonsense, but that's hard to read out of the spec. Strange enough it's possible to read x and y values even when it's set. When unset you can get values not only for the axes, but also for contact resistance which allows the touch driver to report pressure values. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/mc13783-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/mc13783-core.c b/drivers/mfd/mc13783-core.c
index dc1add0c4949..a1ade2324ea9 100644
--- a/drivers/mfd/mc13783-core.c
+++ b/drivers/mfd/mc13783-core.c
@@ -462,8 +462,8 @@ int mc13783_adc_do_conversion(struct mc13783 *mc13783, unsigned int mode,
462 462
463 switch (mode) { 463 switch (mode) {
464 case MC13783_ADC_MODE_TS: 464 case MC13783_ADC_MODE_TS:
465 adc0 |= MC13783_ADC0_ADREFEN | MC13783_ADC0_ADREFMODE 465 adc0 |= MC13783_ADC0_ADREFEN | MC13783_ADC0_TSMOD0 |
466 | MC13783_ADC0_TSMOD0 | MC13783_ADC0_TSMOD1; 466 MC13783_ADC0_TSMOD1;
467 adc1 |= 4 << MC13783_ADC1_CHAN1_SHIFT; 467 adc1 |= 4 << MC13783_ADC1_CHAN1_SHIFT;
468 break; 468 break;
469 469