Commit 17bd6d00 authored by Imre Deak's avatar Imre Deak Committed by Tony Lindgren

[PATCH] ARM: OMAP: Input: ads7846: select correct SPI mode

The device is using a protocoll where writes are on the falling, reads are
on the rising edge of the clock. This maps to SPI mode 1.
Signed-off-by: default avatarImre Deak <imre.deak@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 7daf4efe
......@@ -683,6 +683,10 @@ static int __devinit ads7846_probe(struct spi_device *spi)
dev_set_drvdata(&spi->dev, ts);
spi->dev.power.power_state = PMSG_ON;
spi->mode = SPI_MODE_1;
err = spi_setup(spi);
if (err < 0)
goto err_free_mem;
ts->spi = spi;
ts->input = input_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment