From: Michael Hennerich Date: Mon, 22 Aug 2011 04:04:12 +0000 (-0700) Subject: Input: ad714xx-spi - force SPI bus into the default 8-bit mode X-Git-Tag: next-20110823~92^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5b9063b19caaffe7135e1f9b8b22174ded0f586b;p=karo-tx-linux.git Input: ad714xx-spi - force SPI bus into the default 8-bit mode Signed-off-by: Michael Hennerich Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/ad714x-spi.c b/drivers/input/misc/ad714x-spi.c index 4120dd549305..da83ac9bed7e 100644 --- a/drivers/input/misc/ad714x-spi.c +++ b/drivers/input/misc/ad714x-spi.c @@ -54,6 +54,12 @@ static int ad714x_spi_write(struct device *dev, unsigned short reg, static int __devinit ad714x_spi_probe(struct spi_device *spi) { struct ad714x_chip *chip; + int err; + + spi->bits_per_word = 8; + err = spi_setup(spi); + if (err < 0) + return err; chip = ad714x_probe(&spi->dev, BUS_SPI, spi->irq, ad714x_spi_read, ad714x_spi_write);