iio: adc: at91: Add support for Touchscreen Switches Closure Time
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 30 Aug 2016 12:27:01 +0000 (14:27 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 Sep 2016 20:11:21 +0000 (21:11 +0100)
commitede63aaf7cda21bc265edb928f01363784cbf3fc
tree14cd9486eb680d84812bceb738b84be39203c467
parentfbe84bd4803eb6c96376af5530ce69e1db873b5f
iio: adc: at91: Add support for Touchscreen Switches Closure Time

On newer components compatible with the at91sam9x5, the Touchscreen
Switches Closure Time or TSSCTIM value of the Touchscreen Mode Register is
not filled at all.
On some hardware, having no time indicated for it may lead to incoherent
values and jitter.
We fix this time to 10us as it is usually difficult to retrieve impedance
values from LCD manufacturers.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/at91_adc.c