]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Don't set mc13783 ADREFMODE for touch conversions
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 2 Dec 2009 18:54:31 +0000 (19:54 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 13 Dec 2009 18:21:57 +0000 (19:21 +0100)
commitbe26d664de1a6333156bd586a2f795271cfcf170
tree3530b8d00a636fa39674264a3efa78d4de16758a
parented89a7551c65e1db44f1a6b7be6efce178fc87d0
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>
drivers/mfd/mc13783-core.c