From 4e00e039831acee6a7f1a507e357303a58d35683 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Thu, 18 Jan 2007 00:45:38 -0500 Subject: [PATCH] --- yaml --- r: 47821 b: refs/heads/master c: 7937e86a70235e1584486654687dc9908a11e00a h: refs/heads/master i: 47819: 17041884716a49b5f3969cbf49b55faaae4048c2 v: v3 --- [refs] | 2 +- trunk/drivers/input/touchscreen/ads7846.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index cec10452ae88..54dbcf33e663 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1936d590a9b72ff6a7a0c826bc613e4757cde1c9 +refs/heads/master: 7937e86a70235e1584486654687dc9908a11e00a diff --git a/trunk/drivers/input/touchscreen/ads7846.c b/trunk/drivers/input/touchscreen/ads7846.c index d983cc51ad32..11979be33589 100644 --- a/trunk/drivers/input/touchscreen/ads7846.c +++ b/trunk/drivers/input/touchscreen/ads7846.c @@ -710,6 +710,10 @@ static int __devinit ads7846_probe(struct spi_device *spi) * may not. So we stick to very-portable 8 bit words, both RX and TX. */ spi->bits_per_word = 8; + spi->mode = SPI_MODE_1; + err = spi_setup(spi); + if (err < 0) + return err; ts = kzalloc(sizeof(struct ads7846), GFP_KERNEL); input_dev = input_allocate_device();