]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Input: ads7846 - introduce sample settling delay
authorSemih Hazar <semih.hazar@indefia.com>
Wed, 18 Jul 2007 04:35:56 +0000 (00:35 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Wed, 18 Jul 2007 04:35:56 +0000 (00:35 -0400)
commite4f48861993294c27849076741eb0c090482560b
tree667d35586e7e7a4dc561f5b24bb8694ead7e2719
parent4994cd8dadcf9d484ab3ec19f3c7c7a4e5353c1c
Input: ads7846 - introduce sample settling delay

The ads7846 driver has support for filtering, but when the chip gets
deselected between samples this causes noise. This patch adds support
for an optional settling delay time, so that two consecutive samples
will be taken with the specified delay time apart.  This ensures that
the chip won't be deselected, so the noise won't appear.

Filtering can still be done, but will have less work to do since each
time a new sample is taken the same delay applies.

Signed-off-by: Semih Hazar <semih.hazar@indefia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ads7846.c
include/linux/spi/ads7846.h