Input: ads7846 - SPI_CPHA mode bugfix

In commit [1] the SPI mode is set to 1, but it should be 0. As stated
in the commit, ads784x samples the data on the rising edge. SPI mode 1
samples on the falling edge [2] though.

The root cause of this is a bug in the omap_uwire code, which treats
CPHA=1 incorrectly; so these two bugs cancel each other out on one
of the main regression test platforms for this driver.

[1] kernel.org GIT 7937e86a70235e1584486654687dc9908a11e00a
[2] http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by Semih Hazar and committed by Dmitry Torokhov 230ffc8e bff0de5f

+1 -1
+1 -1
drivers/input/touchscreen/ads7846.c
··· 848 * may not. So we stick to very-portable 8 bit words, both RX and TX. 849 */ 850 spi->bits_per_word = 8; 851 - spi->mode = SPI_MODE_1; 852 err = spi_setup(spi); 853 if (err < 0) 854 return err;
··· 848 * may not. So we stick to very-portable 8 bit words, both RX and TX. 849 */ 850 spi->bits_per_word = 8; 851 + spi->mode = SPI_MODE_0; 852 err = spi_setup(spi); 853 if (err < 0) 854 return err;