diff options
author | Imre Deak <imre.deak@nokia.com> | 2007-01-18 00:45:38 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-01-18 00:45:38 -0500 |
commit | 7937e86a70235e1584486654687dc9908a11e00a (patch) | |
tree | 4381415197f0257a2abfc20fc55f94a33869c73b /drivers/input/touchscreen | |
parent | 1936d590a9b72ff6a7a0c826bc613e4757cde1c9 (diff) |
Input: ads7846 - select correct SPI mode
Talk to ADS7846 chip using SPI mode 1, which is what the chip
supports: writes on falling clock edge, reads on rising.
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/ads7846.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index d983cc51ad32..11979be33589 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
@@ -710,6 +710,10 @@ static int __devinit ads7846_probe(struct spi_device *spi) | |||
710 | * may not. So we stick to very-portable 8 bit words, both RX and TX. | 710 | * may not. So we stick to very-portable 8 bit words, both RX and TX. |
711 | */ | 711 | */ |
712 | spi->bits_per_word = 8; | 712 | spi->bits_per_word = 8; |
713 | spi->mode = SPI_MODE_1; | ||
714 | err = spi_setup(spi); | ||
715 | if (err < 0) | ||
716 | return err; | ||
713 | 717 | ||
714 | ts = kzalloc(sizeof(struct ads7846), GFP_KERNEL); | 718 | ts = kzalloc(sizeof(struct ads7846), GFP_KERNEL); |
715 | input_dev = input_allocate_device(); | 719 | input_dev = input_allocate_device(); |